bdthemes/laravel-single-sign-on

OAuth2库的Laravel包装器。

v1.1.2 2022-12-07 06:49 UTC

This package is not auto-updated.

Last update: 2024-10-01 16:28:23 UTC


README

安装包

composer require bdthemes/laravel-single-sign-on

发布的迁移

php artisan vendor:publish --provider="BdThemes\SingleSignOn\SingleSignOnServiceProvider"

在服务配置中

'bdthemes' => [
    'client_id'         => env('BDTHEMES_CLIENT_ID'),
    'client_secret'     => env('BDTHEMES_CLIENT_SECRET'),
    'redirect'          => env('BDTHEMES_REDIRECT_URI'),
    'api_url'           => env('BDTHEMES_SSO_API_URL'), //optional
],