|Table of Contents|
Installing Shared Login
The Shared Login plugin can be installed under [Settings] > [Company] > [Plugins] > [Available].
Configuring Shared Login
The Shared Login plugin can be configured under [Settings] > [Company] > [Plugins] > [Installed] by clicking the Manage button next to the plugin.
|Shared Key||The key used to compute the HMAC-SHA256, which is used to authenticate users.|
Using Shared Login
The Shared Login plugin works by accepting a GET request to a specially crafted URL, which then initializes a session within Blesta. Users can either be redirected to the specially crafted URL, or an AJAX request can be made from the user's browser.
The format of shared login URLs are:
|u||The client's username in Blesta|
|t||The current Unix timestamp.|
|r||The URI to redirect the client to. The location where clients should be directed to after logging in. If performing a request via AJAX this value is ignored. If not set, the user will be redirect to the Blesta client interface.|
The token used to verify the content of the request is valid and unaltered. This is an HMAC-SHA256 hash of the current time, username, and redirect URI, using the Shared Key as the key.
How to compute the hash
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.