1. Go to this page and download the library: Download spsostrov/libsso library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spsostrov / libsso example snippets
SPSOstrov\SSO\SSO::enableAliases();
define("SPSOSTROV_SSO_NO_ALIASES", true);
use SPSOstrov\SSO\SSO;
use SPSOstrov\SSO\SSOUser;
$sso = new SSO();
$user = $sso->doLogin();
$sso->doLoginAsArray();
$sso->doRedirect($backUrl);
$backUrl = null; //bude použito url skriptu, který se právě provádí
$backUrl = "https://moje.aplikace.cz/sso"; //plné url
$backUrl = "/cesta/k/sso"; //absolutní cesta na aktuálním serveru
$backUrl = "sso.php"; //relativní cesta vůči právě prováděnému skriptu
$sso->getLoginCredentials($token, $backUrl);
$redirectUrl = $sso->getRedirectUrl($backUrl);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.