Create an OAuth2 application in Liferay
Register an OAuth2 application in your Liferay instance to obtain the Client ID and Client Secret for this account. An OAuth2 application only works on the instance it was created in.
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: the Callback URL StackOne shows you
- 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 across.
- 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.
Find your Liferay domain
Your Liferay domain identifies your Liferay instance.
- Check your browser address bar when signed in to Liferay.
- Format:
{subdomain}.lfr.cloudorliferay.{yourcompany}.com - Example: if your URL is
https://acme.lfr.cloud/web/guest, your Liferay domain isacme.lfr.cloud - Do not include
https://or any trailing path.
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions
Next Steps
Webhooks setup
Configure receiving Events for Liferay into StackOne.