GitLab social sign in
You can enable users to sign up and sign in using their GitLab credentials. To enable this, you’ll need some technical know-how and a GitLab app and credentials. Here’s some GitLab docs that might help.
Get the Kinde callback URL
Link to this section- In Kinde, go to Settings > Authentication.
- In the Social Connections section, select Add connection.
- In the window that appears, select GitLab, then select Save.
- On the GitLab tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead switch.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the GitLab app.
- Use the copied Callback URL to set up the app, see below.
Create GitLab app
Link to this section- Sign in to your GitLab account and follow these instructions for adding a group-owned or user-owned application.
- Ensure these scopes are enabled in your application:
read_user
,openid
,profile
,email
. - Paste the Kinde callback URL in the Redirect URI field. Add additional entries for all your organization custom domain callbacks, e.g.
account.customdomainone.com/login/callback
,account.customdomaintwo.com/login/callback
, etc. - Select Save.
- Copy the Application ID and Secret, and paste them where you can access them later.
Add GitLab credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- On the GitLab tile, select Configure.
- Paste the Client ID (Application ID) and Client secret (Secret) into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will have a GitLab sign in option.
- Select Save. Users will now see GitLab as an option to sign up and sign in to your product.