Add Secure Authentication & SSO In Minutes
Built for developers by developers
Works Everywhere
JAVA
Java
COPY1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // make sure LoginRadius instance exists String accessToken = "<accessToken>"; //Required String fields = null; //Optional AuthenticationApi authenticationApi = new AuthenticationApi(); authenticationApi.getProfileByAccessToken(accessToken, fields , new AsyncHandler<Identity> (){ @Override public void onFailure(ErrorResponse errorResponse) { System.out.println(errorResponse.getDescription()); } @Override public void onSuccess(Identity response) { System.out.println(response.getUid()); } }); |
PHP
Server Side
COPY1 2 3 4 5 6 | <?php // make sure LoginRadius instance exists $access_token = “access token”; $authenticationAPI = new AuthenticationAPI(); $response = $authenticationAPI->getProfileByAccessToken($access_token); ?> |
iOS
Swift
COPY1 2 3 4 5 6 7 8 9 10 11 | // make sure LoginRadius instance exists let parameter:AnyObject = ["email":"email", "password":"password" ] as AnyObject AuthenticationAPI.authInstance().login(withPayload:parameter as? [AnyHashable : Any], loginurl:nil, emailtemplate:nil, smstemplate:nil, g_recaptcha_response:nil,completionHandler: { (data, error) in if let err = error { print("Error") } else { print("login successful") } }) |
JavaScript
COPY1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | // The Login Button event Redirect to the IDX Login Page document.getElementById('login') .addEventListener("click", async ()=> { await LoginRadiusSDK.openLoginPage(); }, false); // The IDX Login callback window.addEventListener("load", async ()=> { await LoginRadiusSDK.appCallback(); // Getting the full user profile let profile = await LoginRadiusSDK.getUserProfile(); console.log(profile); // Getting the user token let token = await LoginRadiusSDK.getToken(); console.log(token); }, false); |
NodeJS
Server Side
COPY1 2 3 4 5 6 7 8 9 | // make sure LoginRadius instance exists var accessToken = “access token”; var fields = null; lr.authenticationApi.getProfileByAccessToken(accessToken, fields).then((response) => { console.log(response); }).catch((error) => { console.log(error); }); |
DOT NET
ASP.NET
COPY1 2 3 4 | //make sure LoginRadius instance exists var accessToken = "accessToken"; //Required string fields = null; //Optional var apiResponse = new AuthenticationApi().GetProfileByAccessToken(accessToken, fields); |
Android
Java
COPY1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // make sure LoginRadius instance exists QueryParams params = new QueryParams(); params.setEmail("Your Email ID"); params.setPassword("Your Password"); AuthenticationAPI api = new AuthenticationAPI(); api.login(getApplicationContext(), params, new AsyncHandler<LoginData>() { @Override public void onSuccess(LoginData logindata) { Log.e("User Profile", logindata.getProfile()); } @Override public void onFailure(Throwable error, String errorcode) { Log.e("error", error.getMessage()); } }); |
Pre-Designed And Hosted Login Interfaces
Sign Up page, login page, password retrieval page, and profile page
Built-In Advanced Security Capabilities
You get the world-class security for your application, user accounts and data
150+ Pre-Built Integrations
Extend your authentication and user data to third party applications
All Integrations