Commencer un nouveau sujet

PHP | How to log in an user in the backoffice

You can use our API to generate a SSO link to log in your users from an intranet portal or from a franchisee/partner account's dashboard. Here is a PHP script to do that:

$email = "";
$timestamp = time()*1000;
$sessionTimeout = "600000";
$ssoToken = "8a7e65............";

echo "$email&ts=" . $timestamp
 . "&mac=" . hash_hmac ("sha256", $email . $timestamp . $sessionTimeout, $ssoToken) . "&errorPage=";

Connexion ou Inscription pour poster un commentaire