Create an OAuth2 application in Liferay
Register an OAuth2 application in Liferay to obtain the Client ID and Client Secret needed for the connection.
Sign in to Liferay
Sign in to your Liferay instance as an administrator.
- Open the Applications Menu from the top navigation bar.
- Navigate to Control Panel > Security > OAuth2 Administration.
- Click the New button in the top-right corner to add a new application.
Fill in application details
Complete the application form.
- Application Name:
StackOne - Callback URI:
https://api.stackone.com/connect/oauth2/liferay/callback - Select Client Secret Basic or Post as the Client Authentication Method.
- Select Web Application as the Client Profile.
- Under Allowed Authorization Types, enable Authorization Code and Refresh Token.
Save and copy the client credentials
Save the application and copy the generated credentials.
- The Client ID is shown on the application overview page.
- The Client Secret is displayed only once after the application is saved — copy it immediately and store securely for use later.
Configure scopes
After saving the application, open the Scopes tab and enable the scopes your integration needs access to.Liferay.Headless.Admin.User.everything is required for the connection test to succeed and must be enabled in addition to any other scopes your integration uses.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Liferay:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Liferay
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile