Wallix Trustelem SSO (OpenID Connect)
This article details how to configure Wallix Trustelem as the primary Identity Provider for ngrok tunnels. By integrating Wallix Trustelem SSO with ngrok, you can:
- 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.
The ngrok integration with Wallix Trustelem supports:
- SP-Initiated SSO: In this mode, users access ngrok edges and tunnels and are redirected to Wallix Trustelem for authentication.
To configure ngrok tunnels with Wallix Trustelem, you must have:
- a Wallix Trustelem account with administrative rights to create apps.
- an ngrok Enterprise Account with an authtoken or admin access to configure edges with OpenID Connect.
To integrate ngrok with Wallix Trustelem SSO, you will need to:
- Configure Wallix Trustelem with the ngrok app.
- Configure ngrok with the SSO settings provided by Wallix Trustelem.
Step 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, enter
https://idp.ngrok.com/oauth2/callbackin the RedirectURI field, and enter
https://trustelem-sso-test.ngrok.ioin 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 fields and then click Close.
Step 2: Configure ngrok
ngrok can leverage Wallix Trustelem SSO in two ways:
- From the ngrok CLI (using the
- From the ngrok dashboard
Option 1: ngrok CLI
Note: For this tutorial, we assume you have an app running locally (i.e., on localhost:3000) with the ngrok client installed.
Launch a terminal
Enter the following command to launch an ngrok tunnel with Wallix Trustelem SSO:
ngrok http 3000 --oidc=Wallix Trustelem_OAUTH_URL \
--oidc-client-id=Wallix Trustelem_CLIENT_ID \
--oidc-client-secret=Wallix Trustelem_CLIENT_SECRET \
Note: 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.
Alternatively, add the
--domain YOUR_DOMAINargument to get your a custom URL, replacing
YOUR_DOMAINwith your URL of preference.
Copy the URL available next to Forwarding (for example,
Skip to Step 3
Option 2: ngrok Edge
To configure an edge with Wallix Trustelem:
Access the ngrok Dashboard and sign in using your ngrok account.
On the left menu, click Cloud Edge and then click Edges.
If you don't have an edge already set to add Wallix Trustelem SSO, create a test edge:
- Click + New Edge.
- Click Create HTTPS Edge.
- Click the pencil icon next to "no description", enter
Edge with Trustelem SSO OIDCas the edge name, and click Save.
On the edge settings menu, click OIDC.
Click Begin setup and enter the following values into the fields:
- Issuer URL: The issuer URL you copied from the Trustelem console.
- Client ID: The client id you copied from the Trustelem console.
- Client Secret: The client secret you copied from the Trustelem console.
Click Save at the top.
Launch a tunnel connected to your Wallix Trustelem edge:
For this step, we assume you have an app running locally (i.e. on localhost:3000) with the ngrok client installed.
Click Start a tunnel.
Click the copy icon next to the tunnel command.
Launch a tunnel:
- Launch a terminal.
- Paste the command but replace
http://localhost:80with your localhost app address (i.e.,
- Click Enter and an ngrok tunnel associated with your edge configuration will launch.
To confirm that the tunnel is connected to your edge:
- Return to the ngrok dashboard
- Close the Start a tunnel and the Tunnel group tabs
- Refresh the test edge page. Under traffic, You will see the message You have 1 tunnel online. Start additional tunnels to begin load balancing.
In the test edge, copy the endpoint URL. (You use this URL to test the Wallix Trustelem Authentication)
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 (i.e.,
https://trustelem-sso-test.ngrok.ioor 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.