Identity provider - Auth0
This guide will help you configure and integrate with Auth0.
Warning
Using hardcoded OAuth integrations is deprecated, as it does limit your flexibilty to implement business rules. Our recommendation is to use Liquid and GraphQL implement the OAuth per your the requirements. To expedite and unify the process, OAuth module will be available soon.
Requirements
To follow the steps in this tutorial, you should be familiar with Users and Identity Providers. This guide builds on previous tutorials in the Developer Guide: Identity Providers section.
Steps
Step 1: Create application on your Auth0 account https://auth0.com/
Step 2: In Auth0 admin set Allowed Callback URLs to https://<YOUR_DOMAIN>/auth/auth0/callback
Step 3: In Auth0 admin set Allowed Web Origins to https://<YOUR_DOMAIN>
Step 4: Configure Partner Portal
Copy Client ID
, Client Secret
and Domain
from Auth0. Then go to https://partners.platformos.com/instances/<YOUR INSTANCE ID>/edit
, switch to edit mode and add the following JSON to integrations
:
"auth0": {
"client_id": "<CLIENT ID>",
"client_secret": "<CLIENT SECRET>",
"domain": "<domain>"
}
Step 5: Use /auth/auth0
on your Instance
For example, you can add a link to the "Log In / Sign Up" Liquid page that points to /auth/auth0
.