初始化

This commit is contained in:
2025-10-16 09:56:36 +08:00
commit de704db577
272 changed files with 37331 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// 测试OAuth 2.0密码授权流程
// 1. 使用密码授权获取访问令牌
POST http://localhost:5001/api/v1/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=testuser3&password=password123&client_id=futuremail-client&client_secret=futuremail-secret
###
// 2. 使用访问令牌访问受保护的API
GET http://localhost:5001/api/v1/mails
Authorization: Bearer YOUR_ACCESS_TOKEN