What you’ll need
- A Twitch account (two-factor authentication enabled for your developer account is recommended).
- Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.
Create credentials for ngrok
- Go to the Twitch developer console, sign in, click Applications in the left menu, and then click Register Your Application.
-
On the Register Your Application page, enter a Name, set OAuth Redirect URLs to
https://idp.ngrok.com/oauth2/callback, select Website Integration in the Category selector, and then click Create.
Security: Enable two-factor authentication for your Twitch account before registering an app.
- On the Developer Applications page, click Manage for your application.
- On the application page, click New Secret and note the Client ID and Client Secret values.
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