What you’ll need
- A GitLab account.
- Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.
Create an application
- Open your GitLab profile page and select Applications in the left menu.
Restricting sign-in: To limit which users can sign in with GitLab, create the application under one of your groups or as an instance-wide application.
See Further resources for more detail.
-
Enter a Name for your application and set Redirect URI to
https://idp.ngrok.com/oauth2/callback. - In the Scopes section, select the scopes appropriate for your app (for example, openid, profile, and email) and then click Save application.
Update your ngrok endpoint Traffic Policy
- Access the ngrok Dashboard Endpoints page and locate an existing endpoint you’d like to add this to or create a new one.
- In your traffic policy, add the following configuration:
You may add any scopes that are required by your application with the following caveats.
- Scopes which require a Facebook app review are unsupported.
- ngrok will enforce that users accept all permissions before completing authorization.
Configure access control
Optionally, configure access control to your service by only allowing specific users or domains.- By Email
- By Name