Usage
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
- Go to GitLab App Dashboard
- On the left sidebar, select your avatar
- Select Edit Profile
- On the left sidebar, select Applications
- Select Add new application
-
In the application form, enter a Name (arbitrary), and add your Redirect URI:
Add the Redirect URI you are passing as the redirectURI argument to the loginWithRedirect method:
JavaScript
- Make sure to tick openid, profile, email in the Scopes

- Click Save application to save your GitLab app
- You will be provided with the Application ID and Secret
- Return to your Magic Dashboard and input the Application ID and Secret for your GitLab OAuth app
- In Magic Dashboard, click Save