megaads/sso-client
最新稳定版本:1.2.4
Composer 安装命令:
composer require megaads/sso-client
包简介
Sso client package for laravel
README 文档
README
- Install
composer require megaads/sso-client - Registry app service provider in project app.php config file
Megaads\SsoClient\SsoClientServiceProvider::class - Make laravel auth.
php artisan make:auth php artisan migrate - Publish package config file
php artisan vendor:publish --provider="Megaads\SsoClient\SsoClientServiceProvider" --tag=config --force
After file publish open and edit file config
- Registry custom authentication middleware in
Kernel.phpfile'sso' => \Megaads\SsoClient\Middleware\CustomAuthenticate::class, - Change middleware on
Kernel.phplike below:protected $middleware = [ \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, //Add bellow lines👇🏻 \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class ];
统计信息
- 总下载量: 873
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-21