Docsright arrowEdge Stackright arrowSingle Sign-On with OneLogin

3 min • read

Single Sign-On with OneLogin

OneLogin is an application that manages authentication for your users on your network, and can provide backend access to Ambassador Edge Stack.

To use OneLogin with Ambassador Edge Stack:

  1. Create an App Connector
  2. Gather OneLogin Credentials
  3. Configure Ambassador Edge Stack

Create an App Connector

To use OneLogin as your IdP, you will first need to create an OIDC custom connector and create an application from that connector.

To do so:

  1. In your OneLogin portal, select Administration from the top right.
  2. From the top left menu, select Applications > Custom Connectors and click the New Connector button.
  3. Give your connector a name.
  4. Select the OpenID Connect option as your "Sign on method."
  5. Use http(s)://{{AMBASSADOR_URL/.ambassador/oauth2/redirection-endpoint as the value for "Redirect URI."
  6. Optionally provide a login URL.
  7. Click the Save button to create the connector. You will see a confirmation message.
  8. In the "More Actions" tab, select Add App to Connector.
  9. Select the connector you just created.
  10. Click the Save button.

You will see a success banner, which also brings you back to the main portal page. OneLogin is now configured to function as an OIDC backend for authentication with Ambassador Edge Stack.

Gather OneLogin Credentials

Next, configure Ambassador Edge Stack to require authentication with OneLogin, so you must collect the client information credentials from the application you just created.

To do so:

  1. In your OneLogin portal, go to Administration > Applications > Applications.
  2. Select the application you previously created.
  3. On the left, select the SSO tab to see the client information.
  4. Copy the value of Client ID for later use.
  5. Click the Show Client Secret link and copy the value for later use.

Configure Ambassador Edge Stack

Now you must configure your Ambassador Edge Stack instance to use OneLogin.

  1. First, create an OAuth Filter with the credentials you copied earlier.

Here is an example YAML:

  1. Next, create a FilterPolicy to use the Filter you just created.

Some example YAML:

  1. Lastly, apply both the Filter and FilterPolicy you created with a kubectl command in your terminal:

Now any requests to https://{{AMBASSADOR_URL}}/backend/get-quote/ will require authentication from OneLogin.