In this article:

  • How to Connect Your Auth0 Account
  • How to Connect Your Authorization Code Grant - OAuth Support

To integrate Auth0, follow the steps below between the MAZ dashboard and your Auth0 dashboard. You will create an application in Auth0 and copy specific fields into the MAZ dashboard. Navigate to Database Integrations and then select Setup next to Auth0, to lead to the following screen:

Access Database Name

Log into your Auth0 account. Select the avatar on the top right, and then Settings.

Scroll down to API Authorization and enter the "Default-Directory" field with your database name {DATABASE}. You will enter this in the MAZ dashboard below.

Create an Application

Create a Machine to Machine (M2M) application by navigating to Applications, Create Application, then name your application, and select Machine to Machine.

Important Note: To create a Machine to Machine app, you will need an Auth0 Developer Pro account. 

Authorize

Navigation to the API tab in the application, and select Auth0 Management API from the dropdown.

Then check the following boxes:

read:users
update:users
create:users
read:users_app_metadata
update:users_app_metadata
create:users_app_metadata

Access Audience

Select the APIs from the menu. Locate the 'Identifier' field to enter this in the MAZ dashboard below.

Grant Password

In Applications, Navigate to Settings and scroll down to Show Advanced Settings


In this section that open, select Grant Types. Then check Password, and select Save Changes.

Enter Data in MAZ

Enter the following values in the Auth0 dashboard:

Domain
Client ID
Client Secret
Management API Identifier
Default Directory

Auth0 Authorization Code Grant - OAuth 

Connect your 0Auth registration used on your webs site or other app properties seamlessly into your app.

  1. Navigate to Applications and select your MAZ Machine to Machine application.
  2. Navigate to Settings and locate the Application Domain, Client ID and Client Secret.

3. Open to Database Integrations in your MAZ account and navigate to the Auth0 Authorization Code Grant settings. Copy and paste your Application Domain, Client ID and Client Secret.

4. All set! Your app experience will default to your custom OAuth login and registration screen, seamlessly registering, authenticating and writing user data directly to your Auth0 database. 

Did this answer your question?