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 tunnels only to users authenticated via Wallix Trustelem
- Use Wallix Trustelem security policies and MFA authenticators
- Use Wallix Trustelem’s Dashboard to facilitate access to ngrok apps
What you’ll need
- A Wallix Trustelem 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.
1. Configure Wallix Trustelem
- Access the WALLIX Trustelem administration console and sign in using your Trustelem account.
- On the Dashboard page, click Apps on the left menu, click Add an application, click the OpenID Connect application tile in the Generic models section.
- On the Settings popup, enter
ngrok oidcin the Name field, enterhttps://idp.ngrok.com/oauth2/callbackin the RedirectURI field, and enterhttps://trustelem-sso-test.ngrok.appin the Login URL field. - On the Settings popup, make note of the value of both the ClientID and the ClientSecret fields, and then click Save.
- Make note of the value of the URL of the Issuer field and then click Close.
2. Configure ngrok
ngrok can use Wallix Trustelem SSO in two ways:- From the ngrok CLI (using the
--oidcparameter) - From the ngrok dashboard
Option 1: ngrok CLI
This tutorial assumes you have an app running locally (for example, on
localhost:3000) with the ngrok client installed.- Launch a terminal.
-
Enter the following command to launch an ngrok tunnel with Wallix Trustelem SSO:
Replace the following with values:
- TRUSTELEM_OAUTH_URL: The issuer URL you copied from the Trustelem console.
- TRUSTELEM_CLIENT_ID: The client ID you copied from the Trustelem console.
- TRUSTELEM_CLIENT_SECRET: The client secret you copied from the Trustelem console.
--url YOUR_DOMAINargument to get your custom URL, replacingYOUR_DOMAINwith your URL of preference. -
Copy the URL available next to Forwarding (for example,
https://trustelem-sso-test.ngrok.app). - Skip to Step 3.
Option 2: Traffic Policy
This tutorial 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 Wallix Trustelem:
https://trustelem-sso-test.ngrok.app).
Grant access to Wallix Trustelem users
Wallix Trustelem allows its users to access OIDC-integrated apps. To create a user, follow the instructions below:- On the left menu of the WALLIX Trustelem administration console, click Users and then click Create User.
- Enter values for First Name, Last Name, and Primary Email fields, and then click Save.
Test the integration
- In your browser, launch an incognito window.
- Access your ngrok tunnel (for example,
https://trustelem-sso-test.ngrok.appor using the copied endpoint URL). - You should be prompted to log in with your Wallix Trustelem credentials.
- After logging in, you should be able to see your web app.