fennec-tech / laravel-single-sign-on
This package is a very simple Laravel single sign on for multiple applications.
dev-main
2023-09-09 16:59 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is not auto-updated.
Last update: 2024-05-17 18:40:08 UTC
README
This package is a very simple Laravel single sign on for multiple applications.
Installation
You can install the package via composer:
composer require fennec-tech/laravel-single-sign-on
You can publish the config file with:
php artisan vendor:publish --tag="laravel-single-sign-on-config"
Usage
1- Add SESSION_DOMAIN
and ACCOUNTS_URL
to your .env file.
2- Add LaravelSingleSignOnMiddleware::class
to the $middleware
variable in the kernel.php
file.
3- Add RedirectIfAuthenticatedMiddleware::class
to the 'guest'
attribute in the $routeMiddleware
variable in the kernel.php
file.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.