xdavidwu/laravel-oidc-auth
最新稳定版本:v0.6.1
Composer 安装命令:
composer require xdavidwu/laravel-oidc-auth
包简介
OpenID Connect authentication for Laravel
README 文档
README
OpenID Connect authentication for Laravel
Save access token to session storage, and integrate with Laravel Auth.
Based on steverhoades/oauth2-openid-connect-client.
Usage
Publish config with artisan command vender:publish for provider LaravelOIDCAuth\OIDCAuthServiceProvider, and fill it.
Use LaravelOIDCAuth\Authenticate as auth middleware to redirect directly to OIDC login automatically.
config/auth.php
Set guard driver to oidc-auth-session to remove tokens from session storage on logout.
Set provider driver to oidc-auth-session to make Auth::user() return a LaravelOIDCAuth\OIDCUser authenticable from saved token.
Alternatively, you can implement a user factory (see LaravelOIDCAuth\UserFactoryInterface) for things like creating user DB model and use provider driver like eloquent.
统计信息
- 总下载量: 17.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-24