menumbing/oauth2-server
Composer 安装命令:
composer require menumbing/oauth2-server
包简介
OAuth2 component for Hyperf inspired from Laravel Passport
README 文档
README
menumbing/oauth2-server is a standards compliant implementation of an OAuth 2.0
authorization server. This component is Hyperf component as wrapper of league/oauth2-server.
You can easily configure an OAuth 2.0 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.
Out of the box it supports the following grants:
- Authorization code grant
- Client credentials grant
- Device authorization grant
- Implicit grant
- Refresh grant
- Resource owner password credentials grant
The following RFCs are implemented:
- RFC6749 "OAuth 2.0"
- RFC6750 "The OAuth 2.0 Authorization Framework: Bearer Token Usage"
- RFC7519 "JSON Web Token (JWT)"
- RFC7636 "Proof Key for Code Exchange by OAuth Public Clients"
- RFC8628 "OAuth 2.0 Device Authorization Grant
Requirements
- PHP>=8.1
- swoole extension
- openssl extension
- json extension
Installation
composer req menumbing/oauth2-server
php bin/hyperf.php install:oauth2
php bin/hyperf.php start
Generate Client
php bin/hyperf.php gen:oauth2-client
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-13