Tutorial: Get Auth0 credentials

Part A: Create an Auth0 account

Step 1: Sign Up

Go to https://auth0.com/ and click on Sign Up

../../../_images/step_11.jpg

Step 2: Register

Enter your email and password and click on Next:

../../../_images/step_21.jpg

Step 3: Choose your tenant

  1. Fill the tenant
  2. Select your region (where data are stored)
  3. And click on Next
../../../_images/step_31.jpg

Step 4: Finalize your account

  1. Fill the information according to your profile
  2. Click on Create Account
../../../_images/step_4.jpg

Part B: Create a new application

Step 1: Open the new application form

  1. Select Application in the sidebar
  2. Click on Create Application
../../../_images/step_5.jpg

Step 2: Set the parameters

  1. Choose a name for your Application
  2. Select Single Page Web Applications
  3. And click on Create
../../../_images/step_6.jpg

Step 3: Get the parameters

  1. Select Settings
  2. Remember Domain and Client ID
../../../_images/step_7.jpg

Step 4: Set the callback URL

In Allowed Callback URLs, write your server URL :

../../../_images/step_8.jpg

Warning

Don’t forget the /callback

Step 5: Save the application

Click on Save Changes

../../../_images/step_9.jpg

Part C: Create a new API endpoint

Step 1: Open the new API form

  1. Select APIs in the sidebar
  2. Click on Create API
../../../_images/step_10.jpg

Step 2: Set the parameters

  1. Choose a name for your API
  2. Choose a random Identifier and remember it
  3. Select RS256 for the signing algorithm
  4. Click on Create
../../../_images/step_111.jpg

Step 3: Save the API

Click on Save

../../../_images/step_12.jpg

Part D: Create Admin rule

Step 1: Open the new Rule form

  1. Select Rules in the sidebar
  2. Click on Create your first rule
../../../_images/step_13.jpg

Step 2: Choose an empty rule template

  1. Click on empty rule
../../../_images/step_14.jpg

Step 3: Edit the new rule

  1. In the title, enter Admin For Metadata
  2. In the code, enter:
function (user, context, callback) {
  var requestedScopes = (
    context.request.body.scope ||
    context.request.query.scope
  )
    .split(' ');

  if (user.app_metadata &&
      user.app_metadata.admin) {
    requestedScopes.push('admin');
  }

  context.accessToken.scope = requestedScopes.join(' ');

  callback(null, user, context);
}
  1. And click on Save
../../../_images/step_15.jpg

Part E: Authentification providers

Select Connections in the sidebar

And configure your favorite authentification provider.

By default, Google is enabled.

../../../_images/step_16.jpg