The official PHP SSO Client for the Barebones SSO Server.
Barebones SSO Server is an awesome, scalable, secure, flexible login system.
- Average memory footprint. About 1MB RAM per connection.
- Classes and functions are carefully named to avoid naming conflicts with third-party software.
- When authentication is required prior to executing some task (e.g. posting a comment), the SSO client encrypts and sends the current request data ($_GET, $_POST, etc.) to the SSO server for later retrieval and will resume exactly where it left off in most cases (e.g. the comment is posted).
- Encrypts communications over the network (even HTTP).
- Communicates with the server on a schedule set by the client. Allows for significantly reduced network overhead without affecting system integrity.
- And more. See the full feature list.
- Also has a liberal open source license. MIT or LGPL, your choice.
- Designed for relatively painless integration into your project.
- Sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively.
- Add the Unicare fork to the 'repositories' section of composer.json, e.g.:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/unicarehealth/sso-client-php.git"
}
]
- Add the package to the 'require' section of composer.json, e.g.:
"require": {
"cubiclesoft/sso-client-php": "dev-master"
}
- Run 'composer update' from the command line to tell Composer to fetch required packages. You may also need to execute 'composer dump-autoload'.
>composer update
>composer dump-autoload
-
Now copy the folder /vendor/cubiclesoft/sso-client-php/sso-client to a public location in your web application (e.g. /sso-client.
-
Complete the installation by opening the installer's web page in a browser (e.g. at /sso-client/install.php).
-
Once installation has completed and a config.php file has been created, delete file 'install.php' and the folders 'js' and 'css'.
-
In the bootstrap/initialisation code for you application add:
require_once('sso-client/config.php');
- You can now use instances of SSOClient as required:
$ssoClient = new \CubicleSoft\SSO\Client\SSOClient();
This refactor as a Composer package allows Composer to manage the phpseclib dependency, where the original repository version raised deprecation messages in PHP 7.2+ (since fixed).