pdgi-online/auth
最新稳定版本:0.0.2
Composer 安装命令:
composer require pdgi-online/auth
包简介
PDGI Authorization Code Grant Client Facade
README 文档
README
A Laravel package providing a facade for OAuth2 Authorization Code Grant flow for PDGI App.
Features
- Secure OAuth2 authorization code flow
- Automatic user creation and login
- Token management and refresh
- Configurable user model
- Ready-to-use authentication routes
Installation
- Install via composer:
composer require pdgi-online/auth
- Migrate database for PDGI Auth
php artisan migrate
- Add these to your .env file:
PDGI_CLIENT_ID=your-client-id
PDGI_CLIENT_SECRET=your-client-secret
Usage
Full Authentication Flow
add login link
<a href="{{ route('pdgi.auth') }}">Login</a>
- The package will:
- Handle the OAuth flow with PDGI auth
- Fetch user information from the PDGI server
- Create a local user if one doesn't exist
- Log the user in automatically
- Redirect to your dashboard
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-29