GitLab Social Login with Magic
GitLab Social Login with Magic
Supported Platforms
You can allow your users to sign up & log in to your web app with their GitLab account.
👉 Play with a demo
#Prerequisites
- You will need a GitLab account
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
#GitLab Setup
After installing the OAuth extension, you can now enable GitLab Login for your Magic app:
- Go to your Magic Dashboard
- Select the Magic app for which you’d like to enable GitLab Login, or create a new app
- Navigate to Social Login from the sidebar
- Click the toggle for GitLab
- Copy the Redirect URI field from your Magic Dashboard
- Go to GitLab App Dashboard. Navigate to Profile Settings > Applications
- In the application form, enter a Name (arbitrary), and make sure to paste the Redirect URI in the input field.
- Make sure to tick openid, profile, email in the Scopes
- When you click Save application you are provided with the application ID and the application secret which you can then use with your application that connects to GitLab.
- Return to your Magic Dashboard and input the Application Id and Secret for your GitLab OAuth app
- In Magic Dashboard, click “Save” – Done! 🎉