Configuring GitLab Social Connection in Production
This guide outlines the steps to configure GitLab as a social login provider in AuthAction for a production environment.
Step 1: Create a GitLab OAuth Application
- Go to the GitLab Developer Portal.
- Click New Application.
- Fill in the required details:
- Name: Your application name.
- Redirect URI: Set the redirect URI to:
https://<tenant-name>.<region>.authaction.com/oauth2/login/callback
- Scopes: Choose the scopes based on your requirements, such as
read_user
for basic user information.
- Click Save Application.
Step 2: Retrieve Client ID and Client Secret
- After saving, GitLab will provide you with a Client ID and Client Secret.
- Copy the Client ID and Client Secret for use in the next steps.
Step 3: Configure GitLab Connection in AuthAction
- Log in to the AuthAction dashboard.
- Navigate to Connections → Social Connections.
- Click Add Connection and select GitLab.
- Enter the Client ID and Client Secret obtained from GitLab.
- Click Save.
Step 4: Enable GitLab Connection for Applications
- In the AuthAction dashboard, navigate to Applications.
- Select the application for which you want to enable GitLab login.
- Go to the Connections tab and enable the GitLab connection.
Step 5: Test the Integration
- Open your application's login page.
- Click on Sign in with Gitlab.
- Authenticate using a Gitlab account.
- Verify that the user is successfully redirected back to your application.
Your application is now configured to allow users to log in using GitLab in production.