SDKs overview
LoginRadius offers Software Development Kits (SDKs) to facilitate the integration of its Customer Identity and Access Management (CIAM) platform into various application environments. These SDKs abstract the underlying RESTful API interactions, providing developers with language-specific methods and objects to manage user authentication, registration, profile management, and security features such as multi-factor authentication (MFA) and single sign-on (SSO). The primary goal of these SDKs is to reduce development time and effort by encapsulating common identity workflows and adhering to best practices for secure communication with the LoginRadius platform.
The SDKs are designed to support a range of development needs, from frontend web applications using JavaScript to backend services built with Java, PHP, Python, and Node.js, as well as native mobile applications for Android and iOS. Each SDK typically handles tasks such as token management, error handling, and secure data transmission, allowing developers to focus on application-specific logic rather than the intricacies of identity protocol implementation. For detailed information on the full range of API endpoints and their functionalities, developers can refer to the LoginRadius API reference documentation.
Official SDKs by language
LoginRadius provides official SDKs for several popular programming languages and platforms. These SDKs are maintained by LoginRadius and are designed to offer comprehensive access to the platform's features, including authentication, user profile management, social login, and passwordless authentication. The table below outlines the core official SDKs, their typical package names, and common installation methods.
| Language/Platform | Package/Library Name | Installation Command (Example) | Maturity |
|---|---|---|---|
| JavaScript | LoginRadiusV2 | npm install loginradius-javascript-sdk |
Stable |
| Java | LoginRadius-Java-SDK | Add to pom.xml (Maven) or build.gradle (Gradle) |
Stable |
| PHP | LoginRadius-PHP-SDK | composer require loginradius/loginradius-php-sdk |
Stable |
| Python | LoginRadius-Python-SDK | pip install loginradius-python-sdk |
Stable |
| Ruby | LoginRadius-Ruby-SDK | gem install loginradius-ruby-sdk |
Stable |
| .NET | LoginRadius-DotNet-SDK | Install-Package LoginRadiusSDK (NuGet) |
Stable |
| Node.js | LoginRadius-NodeJs-SDK | npm install loginradius-nodejs-sdk |
Stable |
| Android | LoginRadius-Android-SDK | Add to build.gradle |
Stable |
| iOS | LoginRadius-iOS-SDK | CocoaPods or Swift Package Manager | Stable |
Each SDK is generally available through standard package managers for its respective ecosystem, simplifying dependencies and updates. Developers can find specific installation instructions and usage examples within the LoginRadius official documentation portal.
Installation
Installation of LoginRadius SDKs typically follows the conventions of the target programming language or platform. For web-based JavaScript applications, the SDK can be included via a Content Delivery Network (CDN) or installed using npm. Backend SDKs for languages like Java, PHP, Python, and Node.js are usually installed via their respective package managers (Maven/Gradle, Composer, pip, npm). Mobile SDKs for Android and iOS integrate through build system configurations like Gradle or CocoaPods/Swift Package Manager.
JavaScript SDK Installation (npm)
npm install loginradius-javascript-sdk
Java SDK Installation (Maven)
Add the following dependency to your pom.xml file:
<dependency>
<groupId>com.loginradius</groupId>
<artifactId>loginradius-java-sdk</artifactId>
<version>{latest_version}</version>
</dependency>
PHP SDK Installation (Composer)
composer require loginradius/loginradius-php-sdk
Python SDK Installation (pip)
pip install loginradius-python-sdk
After installation, developers configure the SDK with their LoginRadius API Key and Secret, which are obtained from their LoginRadius Admin Console. These credentials are essential for authenticating API requests and ensuring secure communication between the application and the LoginRadius platform. The specific configuration steps vary slightly by SDK but generally involve initializing a client object with the provided keys. For example, the LoginRadius JavaScript SDK getting started guide provides detailed setup instructions.
Quickstart example
This quickstart example demonstrates a basic user registration flow using the LoginRadius JavaScript SDK. This snippet illustrates how to initialize the SDK and implement a simple registration function, capturing user email and password. This is a client-side example, typically used in conjunction with a user interface form.
JavaScript Registration Example
First, ensure the SDK is loaded, either via npm or a CDN. Then, initialize the SDK with your App Name and API Key:
// Initialize LoginRadius SDK
const commonOptions = {
appName: "your-loginradius-app-name", // Replace with your LoginRadius App Name
apiKey: "your-loginradius-api-key" // Replace with your LoginRadius API Key
};
const LR = new LoginRadiusV2(commonOptions);
// Function to handle user registration
function registerUser(email, password) {
const payload = {
Email: [{
Type: "Primary",
Value: email
}],
Password: password
};
LR.authentication.register(payload, function (error, data) {
if (error) {
console.error("Registration Error:", error.Description);
alert("Registration failed: " + error.Description);
} else {
console.log("Registration Success:", data);
alert("Registration successful! Please verify your email.");
// Optionally redirect user or update UI
}
});
}
// Example usage (e.g., triggered by a form submission)
// registerUser("[email protected]", "StrongPassword123!");
This example demonstrates the client-side interaction for user registration. For server-side operations, such as managing user data or implementing advanced authentication flows, the respective backend SDKs (Java, PHP, Node.js, Python, etc.) would be used. These server-side SDKs often require both the API Key and API Secret for authentication, providing a more secure environment for sensitive operations. Further examples and more complex use cases, including social login and passwordless authentication, are detailed in the LoginRadius SDKs and Libraries documentation.
Community libraries
While LoginRadius maintains a suite of official SDKs, the developer community may also contribute open-source libraries or integrations that extend or complement the official offerings. These community-driven projects can sometimes provide specialized functionality, alternative implementations, or integrations with frameworks not directly supported by official SDKs. However, it is important to note that community libraries may not carry the same level of support, maintenance, or security guarantees as official SDKs.
Developers considering community libraries should evaluate their source, active maintenance, and compatibility with the latest LoginRadius API versions. Resources like GitHub and other public code repositories are common places to find such contributions. For example, while not specific to LoginRadius, the broader concept of community-driven API clients and libraries is a common practice in API ecosystems, as highlighted by resources discussing API client development. Developers are encouraged to consult the official LoginRadius channels, such as their forums or documentation, for any officially endorsed community projects or guidelines on contributing to the ecosystem.
As of 2026, LoginRadius primarily emphasizes its comprehensive suite of official SDKs, which cover a wide range of popular programming languages and platforms, ensuring a consistent and supported integration experience for its customers. Any community contributions would typically be found through independent searches rather than being centrally promoted by LoginRadius itself, unless explicitly highlighted in their official documentation or developer blog.