This guide shows you how to create a GitLab application and configure ngrok to use GitLab OAuth for user authentication. The steps below follow GitLab’s OAuth 2.0 setup documentation for web applications.Documentation Index
Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.