One code base - many Identity Providers

Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
Logon Labs
VIEW FULL LIST

A couple of steps and you are ready to go

Add this to your front end
Call StartLogin providing the identity provider (google, microsoft or facebook) you want to use, along with an optional email address, and redirect the user to LogonLabs to broker the login.
JavaScript
<html>
<head>
    <title>LogonLabs HTML Sample</title>
    <script>
        window.logonAsync = function() {
            LogonClient.configure({
                app_id: 'fe28e1869626443f909204a76cd622d3'
            });
            LogonClient.ui.button('logonlabs');
            LogonClient.ui.button('logonlabs2', {theme: 'icon'});
        };

        (function(d, s, id){
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) {return;}
            js = d.createElement(s); js.id = id;
            js.src = 'https://cdn.logonlabs.com/dist/logonlabs.min.js';
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'logon-js'));
    </script>
    <style>
        #logonlabs, #logonlabs2 {
            width: 300px;
        }
    </style>
</head>
<body>
    <div id="logonlabs"></div>
    <div id="logonlabs2"></div>
</body>
</html>

                        
Add this to your back end
When the user has completed authenticating with the identity provider, they are redirected to your web application's Callback URL (Configured in LogonLabs App Settings). In the query string of the Callback URL there is a token that acts as a key to access the user's login attempt. Your application should now call ValidateLogin with the provided token to retrieve the login results securely. At this point your code can proceed with your applications normal login workflow (ie, assigning the user session, etc).
PHP
.NET
JAVA
PYTHON
NODE JS
<?php
require(__DIR__ . '/vendor/autoload.php');

use LogonLabs\IdPx\API\LogonClient as LogonClient;
use LogonLabs\IdentityProviders as IdentityProviders;

$logonClient = new LogonClient(array(
    'app_id' => 'fe28e1869626443f909204a76cd622d3',
    'app_secret' => 'YOUR_APP_SECRET',
	'app_path' => 'https://api.logonlabs.com'
	
));

$token = $_REQUEST['token'];

$loginData = $logonClient->validateLogin($token);

if ($loginData['body']['event_success']) {
    //success!
}

                        
var logonClient = new LogonLabs.IdPx.API.LogonClient(
"fe28e1869626443f909204a76cd622d3", 
"https://api.logonlabs.com", 
"YOUR_APP_SECRET"
);
//NOTE: Depending on what flavor of .NET you are using (Asp.Net Core, .NET Framework), 
// the way Request" is accessed could be slightly different
var token = this.Request.Query[Constants.QueryString.token];

var loginData = logonClient.ValidateLogin(token);

if (loginData.event_success)
{
//success!
}

                
import com.logonlabs.LogonClient;
import com.logonlabs.dtos.ValidateLoginResponse;
import com.logonlabs.dtos.SsoValidationDetails;

LogonClient client = new LogonClient("fe28e1869626443f909204a76cd622d3", "YOUR_APP_SECRET","https://api.logonlabs.com");

String queryToken = client.parseToken(callbackUrl);

ValidateLoginResponse response = client.validateLogin(queryToken);

String eventId = response.getEventId(); //used to update the SSO event later via UpdateEvent

if(response.isEventSuccess()) {
    //authentication and validation succeeded. proceed with post-auth workflows for your system

}

from logonlabs.client import Logonlabs

logonClient = Logonlabs('fe28e1869626443f909204a76cd622d3', 'YOUR_APP_SECRET', 'https://api.logonlabs.com')

request_headers = self.headers
token = request_headers["token"]
response = logonClient.validateLogin(token)
data = response.json()
if data['event_success']:
    #success


                        
const client = require('logonlabs-nodejs')('fe28e1869626443f909204a76cd622d3', 'YOUR_APP_SECRET', 'https://api.logonlabs.com');

const callback_url = 'https://your_callback_url/?token=some_validation_token';

let token = client.parseToken(callback_url);

let response = client.validateLogin(token);

let eventId = response.get('event_id'); //can be used to update the SSO event later via updateEvent

//can also call response.isCallSuccess to check if it is a valid response
if(response.isEventSuccess()) {
    //authentication and validation succeeded. proceed with post-auth workflows for your system

}


                        

Faster & easier with more features than DIY.

Add multiple login options & take control of
access using two code snippets

Save Time

Save Time

Add popular SSOs with two easy code snippets.

Discover

Discover

Show users customized login screens by domain.

Audit

Audit

See users on a map and control access with a single click.

Get Social

Get Social

Make it easy for users to login to your app or site. We support all major social media accounts for SSO.

Built for Enterprise

Built for Enterprise

LogonLabs also ties in with many popular enterprise level solutions. See our current list of integrations.

Your databases & workflows

Your databases & workflows

No need to change or point your records to a third party. Use your existing stack & maintain control.

Use your existing login flow & add SSO

Use your existing login flow & add SSO

You choose the login options you want. We support all future updates to the SSO or identity provider - so you don't have to.

Get your free account.
No credit cards, No sales calls,
No obligations, just easy
SSO & control.