yjtec / laravel-cas
此包的最新版本(1.0.4)没有可用的许可证信息。
laravel cas 客户端
1.0.4
2019-09-16 06:49 UTC
Requires
- yjtec/support: ^1.0
README
1.1 在config->auth.php配置文件中添加
驱动为cas
'store' =>[
'driver' =>'cas',
'provider' => 'store',
]
服务的提供者为eloquent(通过主键id查询对应的登录账号信息)
'providers' => [
'store' => [
'driver' => 'eloquent',
'model' => App\Models\StoreAccout::class
]
],
在中间件中使用过
Auth::guard('store')->check()
2.单独使用验证ticket
app('cas')->check(string $ticket); 通过返回登录携带的信息,不通过返回false
[
'login_data' => [
'id' => 'name',
'uname' => '全景智慧城市'
],
'client' => 'store'
]