Skip to main content

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

  1. Login to Auth0

  2. Navigate to Applications>Applications>Select the App you want to set up. E.g.: Default App.

AuthO Custom IDP

  1. 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

    AuthO custom IDP

  2. After entering the callback URL Scroll to the bottom and save the changes by clicking the Save Changes button.

    AuthO custom IDP

  3. After saving the configuration. To add a new user to the application navigate to User Management> Users and click Create User button

    AuthO custom IDP

  4. Enter all mandatory fields and click on Create user to add a new user to the Auth0 application.

    AuthO custom IDP

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.

    AuthO custom IDP

  • 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

AuthO custom IDP

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

AuthO custom IDP

LoginRadius IDP configuration:

  1. Navigate to Platform Configuration>Authentication Configuration>Custom IDPs in admin console

    AuthO custom IDP

  2. Go to OAuth Provider and click on the Add Provider button.

  3. Enter the details of your IDP as follows:

    1. Provider Name- As per your wish e.g.: “auth0”

    2. 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

    3. 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

    4. Application Key- To know the Application key from Aut0 application follow the steps here

    5. Application Secret- To know the Application secret from the Auth0 application follow the steps here

    6. Scope- openid email

    7. Response Type- code

    8. 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

    9. Request Token Http Method- POST

    10. Header

KeyValue
AuthorizationBearer #accesstoken#

AuthO custom IDP

4. Data Mapping

Below, two fields are mandatory to create an account in Loginradius.

FieldsValue
IDsub
Emailemail

AuthO custom IDP

  • After Providing all data. Click on the Save button to save the provider.

    AuthO custom IDP

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.

AuthO custom IDP