This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@insights.ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@insights.ignek.com
    • +91 6351576580
    • info@insights.ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@insights.ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@insights.ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

OAuth2 Administrator and Scopes for Spring Boot Microservice

  • Liferay
  • December 24, 2025

Share On :

Introduction

In modern business systems, microservices are widely used to build apps that are easy to scale and maintain. Liferay allows integration of microservices by creating client extensions. Microservice client extensions are standalone applications that communicate with Liferay. They act as a proxy between Liferay and the microservice.

Liferay’s microservice client extensions communicate with Liferay using OAuth2 via headless APIs.Liferay provides a token to the microservice, using that token microservice can communicate with Liferay.

Prerequisites
  • Liferay DXP/Portal 7.4+

  • Basic knowledge of Liferay and Springboot

  • Experience in developing and deploying Liferay client extensions

Environment Requirements
  • Java

  • Liferay

What is a Microservice Client Extension?

A microservice client extension in Liferay is a modern way that allows developers to build and deploy independent Spring Boot microservices that connect with Liferay. Microservice runs as a standalone application and communicates with Liferay using headless APIs and OAuth2 authentication. Liferay allows the creation of several types of microservice client extensions, like Object Action, Workflow Action, Object Validation, and Notification Type. You can create these extensions by configuring the client-extension.yaml file.

				
					//client-extension.yaml

assemble:
  -   fromTask: bootJar
ignek-sample-spring-boot:
  .serviceAddress: localhost:58081
  .serviceScheme: http
  name: Ignek Sample Spring Boot OAuth Application User Agent
  scopes:
      -   Liferay.Headless.Admin.User.everything
      -   Liferay.Headless.Admin.Workflow.everything
  type: oAuthApplicationUserAgent
ignek-sample-spring-boot-notification:
  name: Ignek Sample Spring Boot Notification
  oAuth2ApplicationExternalReferenceCode: ignek-sample-spring-boot
  resourcePath: /notification
  type: notificationType
ignek-sample-spring-boot-object-action:
  name: Ignek Sample Spring Boot Object Action
  oAuth2ApplicationExternalReferenceCode: ignek-sample-spring-boot
  resourcePath: /object/action/
  type: objectAction
ignek-sample-spring-boot-object-entry-manager:
  name: Ignek Sample Spring Boot Object Entry Manager
  oAuth2ApplicationExternalReferenceCode: ignek-sample-spring-boot
  resourcePath: /object/entry/manager
  type: objectEntryManager
ignek-sample-spring-boot-object-validation-rule:
  allowedObjectDefinitionNames:
      -   C_Employee
  name: Ignek Sample Spring Boot Spring Boot Object Validation Rule
  oAuth2ApplicationExternalReferenceCode: ignek-sample-spring-boot
  resourcePath: /object/validation/rule
  type: objectValidationRule
ignek-sample-spring-boot-workflow-action:
  name: Ignek Sample Spring Boot Workflow Action
  oAuth2ApplicationExternalReferenceCode: ignek-sample-spring-boot
  resourcePath: /workflow/action
  type: workflowAction

				
			
OAuth2 Administrator

The OAuth2 Administrator is the interface of Liferay that is integrated into the system and is used for administering OAuth2 applications and their settings. Once microservice client extensions are deployed on Liferay, the platform automatically generates OAuth2 applications for the microservice, which handle the authentication and authorization aspects between the Microservice and Liferay.

Liferay uses OAuth2 as the standard protocol to secure communication between microservices and the platform. Each microservice client extension requires an OAuth2 application to authenticate and access tokens. These tokens allow the microservice to make authorized API calls to Liferay’s headless REST APIs.

To access the OAuth2 Administrator in Liferay :
  1. Log in to Liferay as an administrator

  2. Navigate to Control Panel → Security → OAuth2 Administration

OAuth2 Control Panel
Auto-Generated OAuth2 Applications

When you deploy a microservice client extension with an OAuthApplicationUserAgent configuration (as shown in the client-extension.yaml example above), Liferay automatically creates an OAuth2 application with characteristics like clientId, Name, WebSiteURL, Scope, etc.

OAuth2
Scopes for Microservice

In Liferay, Scopes are permissions that define what resources and operations your microservice can access within Liferay. When Liferay provides an OAuth2 token to your microservice, the token has specific scopes that limit the API endpoints and actions. This follows the principle of least privilege, ensuring your microservice only has access to the resources it needs. It gives access with read, write, and everything options.

How to define scopes for a Microservice?

In Liferay, there are two ways to define the scope for a Microservice.

  1. From OAuth2 Administration

  2. From the client-extension.yaml file

  • From OAuth2 Administration

Liferay automatically creates the OAuth2 application for the microservice after the deployment. You can define the scope for the microservice directly from the application, but when you define the scope from the application, it’s applied only until the microservice is not deployed again, because Liferay creates or updates the OAuth2 application based on the client-extension.yaml file. So you can define the scope of the application temporarily, not permanently.

You can define scopes for the Microservice from the OAuth2 Administration by following the steps :

    • Navigate to the control panel -> security -> OAuth2 Administration.

    • Click on your Microservice Application.

Application
    • Navigate to the Scopes tab.

    • In this tab, you will see a list of all the scopes of the resources that you can define for the Microservice.

scopes-list
    • Now, click on the scope that you want to define for the Microservice and give access with Read, Write, and Everything options based on your requirement.
permissions
    • Click on the save button.

  • From the client-extension.yaml file

Liferay creates the OAuth2 Application for the microservice automatically based on its client-extension.yaml file. You can define the scopes that you need for your microservice in this file under the scopes: configuration. When you deploy the microservice on Liferay then it will automatically define scopes for it, and you don’t need to define it manually.

				
					//client-extension.yaml

assemble:
  -   fromTask: bootJar
ignek-sample-spring-boot:
  .serviceAddress: localhost:58081
  .serviceScheme: http
  name: Ignek Sample Spring Boot OAuth Application User Agent
  scopes:
      -   Liferay.Headless.Admin.User.everything
      -   Liferay.Headless.Admin.Workflow.everything
  type: oAuthApplicationUserAgent

				
			
Conclusion

Integrating microservices with Liferay through the client extensions is a smooth and efficient way to build applications. Using OAuth2 for secure communication between microservices or Liferay, developers can ensure that each service only has access to the necessary resources, all while maintaining flexibility in defining scopes and permissions. Defining scopes in the client-extension.yaml file is recommended for permanent configuration.

Loading...

Related Blogs

September 30, 2025
Trigger External Microservices from Object Actions with Client Extensions
Trigger External Microservices from Object Actions with Client Extensions
July 19, 2024
What Is Client Extension & How We Can Use
What Is Client Extension & How We Can Use?
August 19, 2025
Microservice Client Extension
Microservice Client Extension
Loading...

Featured Projects Portfolios

October 4, 2023
Government Finance Public Website _ Multilingual Tools for Income and Expense Management
Government Finance Public Website : Multilingual Tools for Income and Expense Management
June 19, 2024
Music License Management Portal _ Onboarding & Data Integrity
Music License Management Portal : Onboarding & Data Integrity
November 25, 2024
Liferay DXP Based Intranet Portal Migration from 7.0 to 7.4
Liferay DXP Based Intranet Portal Migration from 7.0 to 7.4

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@insights.ignek.com
  • info@insights.ignek.com
SALES
  • sales@insights.ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@insights.ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2026 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram