Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

If you have issues authenticating, ensure the time is correct on both your Blesta server and the server the user is connected to. The shared login system will tolerate up to 30 minutes of clock drift.

 

Redirect Example

Code Block
languagephp
<?php
// The key from [Settings] > [Company] > [Plugins] > [Shared Login]
$key = "0123456789abcdef0123456789abcde";
$t = time();
$u = "client_username";
$r = "http://mydomain.com/";
$h = hash_hmac("sha256", $t . $u . $r, $key);

header("Location: " . "https://yourdomain.com/path_to_blesta/plugin/shared_login/?u=" . $u . "&t=" . $t . "&r=" . $r . "&h=" . $h);
exit;
?>

...