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 ngrok endpoints only to users authenticated via Descope
- Use Descope security policies and multi-factor authentication (MFA) authenticators
- Use the Descope Console to facilitate access to ngrok apps
What you’ll need
- A Descope project with administrative rights and an Enterprise license to be able to create SAML applications.
- An ngrok Pay-as-you-go account with an authtoken or admin access to configure endpoints with SAML.
Create a SAML application in Descope
Create a SAML application in Descope and download its IdP metadata by following Descope’s guide, SAML Federated Applications.
Name the application
ngrok, and download the Descope Metadata (XML) file.
You use this metadata in the next step, and you return to the application’s Service Provider (SP) settings in step 3.Configure ngrok
The SAML Traffic Policy action isn’t generally available yet.
auth_id value in the following policy names this SAML configuration and must not be empty.
Once you have early access, create a policy.yaml file with the following content, replacing YOUR_IDP_METADATA_XML with the IdP metadata XML from Descope:Configure Descope
- Back in the Descope Console, under your ngrok application, select Enter the connection details manually under Service Provider (SP).
- Enter the following values in the input fields and save the configuration.
Retrieve both values as described in the SAML action documentation:
ACS URL: The ACS URL generated by the ngrok SAML action for your endpoint.Entity ID: The SP Entity ID generated by the ngrok SAML action for your endpoint.
Start an endpoint
This step assumes you have an app running locally (for example, on
localhost:3000) with the ngrok agent installed.3000 with your local web app port and YOUR_DOMAIN with your ngrok domain: