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.
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 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.
1. Fetch IdP metadata
Add the ngrok app in Descope
- Open the Descope Console.
- On the left menu, click Applications, and then click + Application in the top right corner.
- In the popup window, enter
ngrokin the Name field, make sure thatSAMLis selected under Authentication protocol, and then click Create. - On the ngrok application page, click the download button next to Descope Metadata (XML) to download the Metadata file that you’ll need later on. Make sure to leave this page open.
- Optional: If you wish to change the Auth Hosting URL to use a different flow for ngrok SSO, you can change that on this page, and click Save.
2. Configure ngrok
Once you have developer preview access, create apolicy.yaml file with the following content, replacing YOUR_IDP_METADATA_XML with the IdP metadata XML from Descope:
3. 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.
Replace the following with the values from the SAML action developer preview docs (see SAML action documentation):
NGROK_ACS_URL: The ACS URL generated by the ngrok SAML action for your endpoint.NGROK_ENTITY_ID_URL: The SP Entity ID generated by the ngrok SAML action for your endpoint.
4. Start a tunnel
This step assumes you have an app running locally (for example, on
localhost:3000) with the ngrok client installed.3000 with your local web app port and YOUR_DOMAIN with your ngrok domain:
5. Test the integration
- In your browser, launch an incognito window.
- Access your ngrok endpoint (for example,
https://descope-sso-test.ngrok.appor use the copied URL). - You should be prompted to log in with Descope.
- After logging in, you should be able to see your web app.