sso
sso for accounts.engenesis.com
Installation
Run the following command to install the latest applicable version of the package:
composer require zaman-tech/sso
Setup:
add this lines to your .env file:
ENGENESES_APP_ID=app_id
ENGENESIS_APP_SECRET=app_secret
ENGENESIS_APP_URL=app_url
publish config package:
php artisan vendor:publish --tag=zaman-tech-config
Use:
use ZamanTech\Sso\Http\Controllers\SsoController;
$sso = new SsoController($validated['code']);
$content = $sso->getContent();
$userDetails = $sso->getUserDetails();
$userInfo = $sso->getUserInfo();
License
Package is open-sourced software licensed under the MIT license.