Auth0 as custom IDP in LoginRadius
This document provides a step-by-step guide to configure an Auth0 application as Custom IDP using the OAuth workflow with your LoginRadius application.
Requirement:
-
Auth0 account with paid access (This option is not available in free plan).
-
Loginradius Admin Console Access to Add a new custom IDP .
Configuration of Auth0
-
Login to Auth0
-
Navigate to Applications>Applications>Select the App you want to set up. E.g.: Default App.
-
After selecting the app find the Application URIs section on a page and enter the callback URL in the Allowed Callback URLs field as follows:
Format: https://your_domain.hub.loginradius.com:443/socialauth/validate.sauth -
After entering the callback URL Scroll to the bottom and save the changes by clicking the Save Changes button.
-
After saving the configuration. To add a new user to the application navigate to User Management> Users and click Create User button
-
Enter all mandatory fields and click on Create user to add a new user to the Auth0 application.
Data to be used in LoginRadius
Login Endpoint, Token Endpoint, Profile Endpoint
-
On clicking the APP Scroll down to the bottom of a page and find Advanced Settings and click on it.
-
In Advanced Settings navigate to the Endpoints tab and copy the endpoints for future Loginradius configuration
-
Customer Login Endpoint - OAuth Authorization URL
-
Access Token Endpoint - OAuth Token URL
-
Customer Profile Endpoint - OAuth User Info URL
Application Key and Application Secret:
-
In the Applications>Applications select the App that needs to be configured
-
Navigate to the settings tab and find the Basic information section Copy the Client ID and Client Secret as in the below screenshot.
-
Application Key - Client ID
-
Application Secret - Client Secret
LoginRadius IDP configuration:
-
Navigate to Platform Configuration>Authentication Configuration>Custom IDPs in admin console
-
Go to OAuth Provider and click on the Add Provider button.
-
Enter the details of your IDP as follows:
-
Provider Name- As per your wish e.g.: “auth0”
-
Customer Login Endpoint -To know the Login endpoint of the Auth0 application. Follow the steps mentioned here
e.g.: https://optesttt.us.auth0.com/authorize -
Access Token Endpoint-To know the Token endpoint of the Auth0 application. Follow the steps mentioned here e.g.: https://optesttt.us.auth0.com/oauth/token
-
Application Key- To know the Application key from Aut0 application follow the steps here
-
Application Secret- To know the Application secret from the Auth0 application follow the steps here
-
Scope- openid email
-
Response Type- code
-
Customer Profile Endpoint -To know the Profile endpoint of the Auth0 application. Follow the steps mentioned here e.g.: https://optesttt.us.auth0.com/userinfo
-
Request Token Http Method- POST
-
Header
-
Key | Value |
---|---|
Authorization | Bearer #accesstoken# |
4. Data Mapping
Below, two fields are mandatory to create an account in Loginradius.
Fields | Value |
---|---|
ID | sub |
-
After Providing all data. Click on the Save button to save the provider.
To test the Custom IDP in Loginradius:
-
Go to the App IDX URL https://hub_domain.hub.loginradius.com/
-
Click on the icon with the Name of a social provider you are given on the login radius configuration page
-
After redirecting to the Auth0 Application UI, enter the user credentials you have created in the Auth0 User via application.
-
After successful authentication, it will redirect to the profile page in the IDX of the LoginRadius.