Auth0 - OIDC

To use Auth0 as an IdP to authenticate the Akeyless Platform by way of OIDC, follow the steps below.

Create an Auth0 Application

  1. In your Auth0 account, go to Applications > Applications > Create Application.

  2. For Application Type choose Native and click Create.

    Screenshot of the Auth0 Console while Creating a New Application

  3. On the Settings tab, under the Application URIs section, set https://auth.akeyless.io/oidc/callback in Allowed Callback URLs.

    Screenshot of the Auth0 Console while Configuring Application URIs

  4. Once the OIDC app has been created, you need to obtain the Client ID, Client Secret, and Auth0 domain:

    Screenshot of the Auth0 Console while Retrieving Basic Application Information

  5. To bind the Auth0 application with your Akeyless account, create an OIDC Authentication Method using either Akeyless CLI or UI, as described below.

Create an OIDC Authentication Method with the CLI

akeyless auth-method create oidc --name 'My Auth0 app' --issuer https://{your-auth0-domain}.auth0.com --client-id {your-client-id} --client-secret {your-client-secret} --unique-identifier {your-unique-identifier (for example, 'email' or 'username')}

Log in With OIDC Using the CLI

  1. Configure a new profile with your Access ID from the previous step and OIDC type (if no profile name is provided, the default profile will be configured):

    akeyless configure --access-id <your-access-id> --access-type oidc --profile 'auth0-app'
  2. Now, you can run any Akeyless CLI command and be authenticated with the Auth0 application:

    akeyless list-items --profile auth0-app

Footer Section