What you’ll need
- A GitLab account.
- Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.
Create an application
Follow GitLab’s OAuth application documentation to add a new application, and set the following:- Redirect URI:
https://idp.ngrok.com/oauth2/callback - Scopes: select the scopes appropriate for your app, such as openid, profile, and email.
To limit which users can sign in with GitLab, create the application under one of your groups or as an instance-wide application rather than as a user-owned application.
See Further resources for more detail.
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.