This guide refers to using SSO to authenticate access to your endpoints. You cannot use these instructions to set up SSO for logging into your ngrok account in the dashboard.
- Restrict access to your ngrok endpoints to only users authenticated via miniOrange
- Use miniOrange security policies and multi-factor authentication (MFA) authenticators
- Use miniOrange’s dashboard to facilitate access to ngrok apps
What you’ll need
- A miniOrange account with administrative rights to create apps.
- An ngrok Pay-as-you-go account with an authtoken or admin access to configure endpoints with OpenID Connect.
Configure miniOrange
Add an OAuth2/OpenID Connect application in miniOrange by following miniOrange’s guide to adding an OAuth app.
When you configure the application, enter
https://idp.ngrok.com/oauth2/callback as the Redirect-URL.After you save the application, copy the following values, which you use when you configure ngrok:- Client ID and Client Secret from the application’s edit page.
- The Discovery Endpoint URL from the application’s OAuth Endpoints page.
Use this URL as the issuer URL in the next step, without the
/.well-known/openid-configurationsuffix (for example,https://login.xecurify.com/moas/discovery/v2.0/abcd1234).
Configure ngrok
Use the OpenID Connect Traffic Policy action to enforce miniOrange authentication on your endpoint.Create a Start an ngrok endpoint with this policy, replacing Copy the URL next to Forwarding (for example,
This step assumes you have an app running locally (for example, on
localhost:3000) with the ngrok client installed.policy.yaml file with the following content, replacing the placeholder values with those copied from miniOrange:YOUR_DOMAIN with your ngrok domain:https://miniorange-sso-test.ngrok.app).