Sign In with GitLab
GitLab OAuth social login GitLab sign-in authentication provider developer platformCreate GitLab Account
Section titled “Create GitLab Account”- Create a new GitLab Account if you don’t have one already.
Create GitLab OAuth App
Section titled “Create GitLab OAuth App”- Create a new OAuth application (direct link) by:
- On the left Sidebar, Select Applications.
- Select Add new application on the right.
GitLab OAuth App Information.
Section titled “GitLab OAuth App Information.”-
Enter a Name and a Redirect URI.
-
Select OAuth 2 Scopes as defined in the Authorized Applications documentation.
- Minimum required scope:
read_user - OAuth 2.0 Application Type:
confidential
- Minimum required scope:
-
Fill in the Redirect URI with your OAuth Callback URL from Nhost.
Configure Nhost
Section titled “Configure Nhost”- Click Generate a new client secret to generate an OAuth client secret.
- Copy and paste the Client ID and Client Secret from GitLab to your Nhost OAuth settings for GitLab. Make sure the OAuth provider is enabled in Nhost.
- Click the checkbox “I have pasted the redirect URI into GitLab”.
- Click Confirm settings.
Sign In Users
Section titled “Sign In Users”Once you’ve configured GitLab as an OAuth provider in Nhost, you can sign in users using the GitLab provider. See the OAuth Provider Sign-In Guide for detailed implementation instructions including the complete OAuth flow, error handling, and session management.