Creating an OAuth Application
To connect GitLab with StackOne, you’ll need to create an OAuth application in your GitLab account.
Sign in and navigate to Applications
Sign in to your GitLab account
- Click on your profile avatar in the top-right corner
- Select Edit profile from the dropdown menu
- In the left sidebar, expand the Access section
- Click Applications from the expanded menu
Create a new application
Click the Add new application button to create a new OAuth application.
- Name: Enter a descriptive name (e.g., StackOne Integration)
- Redirect URI: Enter the Callback URL from your Connector Profile
- Confidential: Leave this checkbox checked (recommended for server-side applications)
Select OAuth scopes
Select the appropriate scopes based on your integration requirements. Use api for full API access, or select granular scopes for specific permissions. For read-only access reviews and compliance checks, read_api and read_user are enough. If you select only those two, enter read_api read_user in the OAuth Scopes field when you connect, because the default requests all five scopes and GitLab refuses scopes the application does not have.
Save the application
Click Save application to create your OAuth application.
Copy Application credentials
After saving, your Application ID and Secret will be displayed.
- Copy the Application ID and store it securely for use later
- Copy the Secret immediately as it will only be shown once
- If you lose the Secret, you’ll need to regenerate it from the application settings
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for GitLab:Open the connector
Choose actions and events
- Click Add Profile.
- If the connector offers more than one authentication method, set the Auth Method filter to OAuth 2.0.
- Select the actions, and any events, to enable for this Connector Profile.
- Click Continue.
Set up authentication
- Select Authentication Type as OAuth 2.0.
- Fill out the fields using details retrieved from your provider:
- Application ID
- Application Secret
- OAuth Scopes (Optional)
- Click Create Profile.