What you’ll need
- A Twitch account with two-factor authentication (2FA) enabled (required to register an application).
- Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.
Create credentials for ngrok
Follow Twitch’s documentation for registering an app in the Twitch developer console, then set the following:- OAuth Redirect URLs:
https://idp.ngrok.com/oauth2/callback - Category: select a category, for example Website Integration.
Required: You must enable two-factor authentication (2FA) on your Twitch account before you can register an 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.