saimor / saimor-identity
This package is abandoned and no longer maintained.
No replacement package was suggested.
Saimor Identity implementation in PHP
This package has no released version yet, and little information is available.
README
This package contains the necessary components to integrate Saimor Identity SSO in any website owned or validated by Saimor IVS.
Note: This package is only for internal use by Saimor IVS. You are welcome to modify this code to work for your own projects.
Security concerns: security@saimor.dk
General contact: github@saimor.dk
Example implementation (as of 24-03-2019)
require_once __DIR__.'/vendor/autoload.php'; use Saimor\SaimorIdentity\SaimorIdentity; if(isset($_GET['token'])) { $resp = SaimorIdentity::processJWT(file_get_contents('saimor_identity_pub.key'), [ 'site' => 'test', 'links' => [ 'steam' ], 'ignorereferrer' => false ]); if($resp['success']) { echo json_encode($resp); } else { error_log($resp['error']); echo 'Login failed'; } } else { SaimorIdentity::redirect('test', ['steam']); }