Skip to main content

Overview

The LoginRadius Authentication APIs enable secure user registration, login, and profile management using email/username and password authentication. It supports custom workflows and token-based session management, providing flexible solutions for front-end and back-end integrations.

Usage and Security

  • Authentication API endpoints do not require API Secret, ensuring safer front-end usage.
  • Most endpoints require your LoginRadius API Key and the user's Access Token.

Retrieve LoginRadius API Key

  • Log in to the Admin Console.
  • Navigate to Tenant Settings and locate the API Configuration section. There, you will find the API Key required for most Authentication API endpoints.

Access Token:

  • The access token is a unique session identifier generated upon successful authentication.
  • It is unique to each login session and differs even for the same customer on repeated logins.
  • The Token and the API Key will help LoginRadius identify the authenticated user.
  • For details on how to pass access tokens to these APIs, refer to the Authentication Token Handling Guide.

Common Authentication API Endpoints

Here are the most commonly used endpoints in authentication workflows:

Login endpoints allow customers to sign in using their registered credentials. These are essential for initiating a session and generating an access token for subsequent API calls.

ActionEndpoint Description
Auth Login by EmailLog in using email and password.
Auth Login by UsernameLog in using username and password.

📌 Note: LoginRadius offers a public demo where developers can interact with Authentication APIs and test real-time integration scenarios.

Best Practices

  • Use the API Key for front-end integration and keep the API Secret securely on the server side to prevent misuse or data exposure.
  • Protect access tokens using HttpOnly and Secure flags (in cookies) or encrypted local/session storage to mitigate XSS attacks.
  • Always validate access tokens on the server side before performing sensitive actions such as profile updates or account deletions.