This guide walks you through creating a GitHub OAuth app and configuring ngrok to use it for user authentication.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 GitHub account with permission to create OAuth apps.
- Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.
Create a GitHub OAuth application
- Follow GitHub’s documentation for creating an OAuth app until the final step of submitting the registration form.
- Set the Authorization callback URL to
https://idp.ngrok.com/oauth2/callback. - Submit the form.
- From the application overview, save your Client ID and Client secret for use in ngrok.
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.Known limitations
- Users who use GitHub’s private email setting are not able to sign in.