pod-point/laravel-passport-auth
最新稳定版本:v1.0.2
Composer 安装命令:
composer require pod-point/laravel-passport-auth
包简介
Laravel Passport Auth Driver and Utilities for Laravel.
README 文档
README
A Laravel user provider which consumes an OAuth2 server to authenticate (via OAuth2 tokens) whilst still retrieving the authenticated users details from your applications own database.
Installation
First install this package from Composer:
composer require pod-point/laravel-passport-auth
Once installed, add the Service Provider to your app's array of Service Providers:
PodPoint\LaravelPassportAuth\ServiceProvider::class,
Then publish the config to your app's config directory:
php artisan vendor:publish --provider="PodPoint\LaravelPassportAuth\ServiceProvider"
You can then add the environment variables stated in config/passport.php to .env, which are the details of your OAuth2 server's password grant client:
PASSPORT_URL= PASSPORT_KEY= PASSPORT_SECRET=
Finally, update your user provider driver in config/auth.php:
'driver' => 'passport',
统计信息
- 总下载量: 30.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-14