cag / cag-laravel-sso
SSO for CAG - Laravel
dev-main
2021-07-08 17:50 UTC
Requires
- php: >=7.0
- ext-json: *
- ext-zlib: *
- laravel/framework: ^7.0|^8.0
- laravel/ui: ^3.2
- laravelcollective/html: ^6.0
This package is not auto-updated.
Last update: 2024-05-19 22:19:29 UTC
README
Single Sign On for CAG
Installation
You can install the package via composer:
composer require ndoptor/integration-sso-laravel
Laravel 7.x and above
The package will automatically register itself, so you can start using it immediately.
Configuration
After installing the package, need to update or add these lines on .env
file
LOGIN_SSO_URL=http://sso-url.test/login
LOGOUT_SSO_URL=http://sso-url.test/logout
Updateweb.php
in routes
directory
- Remove
Auth::routes();
, if exists.
Use cag.sso
for CAG SSO authentication
Route::middleware(['cag.sso'])->group(function () {
/// here your authentication route
});
Thank you for using it.