View Ruby Auth Flow: Decrypt and Verify User Response Example.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LaunchKey.authorized?(auth) |
View Python Auth Flow: Auth Callback Example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.is_authorized(auth_request, auth) |
View Ruby: Create White Label User.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LaunchKey.create_whitelabel_user(identifier) |
View Python Auth Flow:Create White Label User.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = api.create_whitelabel_user("identifier") |
View .NET: Create White Label User Example.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var whiteLabelUser = client.CreateWhiteLabelUser("identifier"); |
View Java SDK: Create White Label User Example.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
WhiteLabelUserCreateResult result = | |
authenticationManager.createWhiteLabelUser(myUniqueUserIdentifier); | |
} | |
catch(AuthenticationException e) { | |
//error handling | |
} |
View LaunchKey PHP SDK - DeOrbit.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client->auth()->deOrbit("AuthRequestID"); |
View LaunchKey PHP SDK - Add Logger - Monolog.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$logger = new \Monolog\Logger('launchkey', new \Monolog\Handler\ErrorLogHandler()); | |
$config = new \LaunchKey\SDK\Config(); | |
$config->setAppKey("1234567890") | |
->setSecretKey("supersecretandwayrandomsecretkey") | |
->setPrivateKeyLocation("/usr/local/etc/launchkey-app-private-key.pem") | |
->setLogger($logger); | |
$client = \LaunchKey\SDK\Client::factory($config); |
View LaunchKey PHP SDK - Create White Label User.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = $client->whiteLabel()->createUser("PermanentUniqueIdentifier"); |
View LaunchKey PHP SDK - Event Subscription.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client->eventDispatcher()->subscribe( | |
\LaunchKey\SDK\Event\AuthResponseEvent::NAME, | |
function (authResponseEvent) { | |
$authorized = $authResponseEvent->getAuthResponse()->isAuthorized(); | |
if ($authorized !== null) { | |
$stat = "login." . $authorized ? 'authorized' : 'denied'; | |
StatsD::getInstance()->increment($stat); | |
} | |
} | |
); |
NewerOlder