Skip to main content

LoginRadius as Custom IDP With Another LoginRadius Application

LoginRadius supports acting as an Identity Provider (IDP) and a Service Provider (SP) using industry-standard protocols like OAuth, SAML, OIDC, and JWT. This guide outlines configuring one LoginRadius app as a custom OAuth IDP to enable single sign-on (SSO) with another LoginRadius app.

Key Features

  • Use LoginRadius as both IDP and SP

  • OAuth-based SSO between two LoginRadius applications

  • Unified identity across apps with shared session capability

  • Profile mapping from one tenant to another

Use-Cases

  • Multi-brand companies with distinct LoginRadius sites looking to unify authentication.

  • Organizations using separate LoginRadius apps for staging and production environments.

  • Identity orchestration between region-specific LoginRadius tenants.

  • Centralized login with delegated access to other business units.

Service Provider (SP) LoginRadius App Setup

Follow the below steps to configure the service provider settings in LoginRadius:

  1. Go to Authentication > Custom IDPs in the LoginRadius Console

  2. Click Add Custom IDP → Select Custom OAUTH Provider.

  3. Fill in the following fields:

FieldValue
Provider Namee.g., LR-OAuth
Customer Login Endpointhttps://cloud-api.loginradius.com/sso/oauth/redirect
Access Token Endpointhttps://cloud-api.loginradius.com/sso/oauth/access_token
Application KeyAPI Key of the IDP LoginRadius App (get from Admin Console)
Application SecretAPI Secret of the IDP LoginRadius App
Scopeemail
Response Typecode
Customer Profile Endpointhttps://api.loginradius.com/identity/v2/auth/account?apiKey=<IDP_API_KEY>
Request Token HTTP MethodPOST
  1. Query Parameter:
KeyValue
access_token#accesstoken#
  1. Data Mapping:
LoginRadius FieldValue
IDUid
EmailEmail[0].Value
  1. Click Save to complete setup.

Integration Details

  • The IDP and SP apps must be under the same or connected accounts (LoginRadius tenants)

  • Ensure the IDP site has active users and that API access is enabled.

  • Scopes and mappings must align to provide valid login responses.

Test the Integration

You can test the set up by following the below steps:

  1. Navigate to the IDX of the SP App:
https://<sp-app-name>.hub.loginradius.com/
  1. Click on the OAuth provider icon you configured.

  2. You’ll be redirected to the LoginRadius IDP app for authentication.

  3. After a successful login, you'll be redirected to the SP IDX profile page, which will have an active session.

Best Practices

  • Use dedicated OAuth credentials per environment (dev/stage/prod)

  • Monitor login flow using the LoginRadius audit logs.

  • Keep API secrets secure and rotate them periodically.

  • Ensure both applications are using HTTPS in production.

  • Validate user profiles after login using the UID to enforce authorization logic.