Skip to main content
Version: I2023.1.0

Connecting to Auth0

Auth0 is a platform for managing online identities, authentication, and authorization. AtScale recommends using Auth0 when your organization leverages their platform for all of their applications in place of an LDAP server.

Here is an overview of the steps for setting up Auth0 authentication. First, in Auth0 you should create an account, set up tenant, users, and roles, create an application, set database connection, and setup API settings. Then in AtScale you configure a directory and map roles.

Prerequisites

Setting up Auth0

note

Note: In case you have already completed some of the actions listed in this section you can omit the corresponding steps.

  1. Create account in Auth0.

  2. Set up users and roles:

    1. Create a tenant.
    2. Create one ore more users in User Management > Users.
    3. Create one ore more roles in User Management > Roles.
    4. Assign roles to users as needed.
  3. Create an application:

    1. Start creating a new application in Applications > Applications.
    2. Enter name and description as needed.
    3. Set the Machine to Machine type.
    4. In the Settings tab, go Advanced Settings and select all types in the Grants section.
    5. Save the application.
  4. Configure the database connection:

    1. Go to Authentication > Database and copy the name of the Username-Password-Authentication database connection.
    2. In the Dashboard, open the menu for your tenant and choose Settings.
    3. In the General tab, go to the API Authorization Settings section and paste the database connection name in Default Directory field.
    4. Save your changes.
  5. Setup APIs:

    1. Choose Applications > APIs > Auth0 Management API.
    2. Choose the Machine to Machine Applications tab.
    3. Locate the application you created above, set it to Authorized, and select all permissions.
    4. Save your changes.
  6. Copy the application details:

    1. Go to Applications > Applications and open the application you created above.
    2. Copy and store the following application details: domain, client ID, client secret.

Setting up AtScale

First, you need to set up the directory:

  1. Log in to AtScale, go to Security, and choose Directory > Setup on the left.

  2. In the Type of Directory Service on the right, choose Auth0 Directory.

  3. Enter the domain, client ID, and client secret you copied from Auth0, and choose Save.

  4. Test the directory:

    1. Choose Test Configuration on the left.
    2. Enter the user name and password of one of the users you created in Auth0.
    3. Choose Test; on success, you should see user's details displayed below.

Now you should map users:

  1. Choose Mappings on the left.
  2. In the Directory Group column on the right, enter one of the roles you created in Auth0.
  3. In the AtScale Role column, enter the AtScale role to which the specified Auth0 role should be mapped.
  4. Choose Add.
  5. Repeat the steps above for other Auth0 roles as needed.

Finally, you can check the results by trying to log in to AtScale with some of the users whose Auth0 role is mapped.

More information

Assigning Roles to Directory Groups