yao/openapi/oauth
Max 1c79908649 Enhance OAuth Device Flow implementation
- Add support for the OAuth Device Authorization Flow (RFC 8628) in the OpenAPI service, allowing devices with limited input capabilities to obtain authorization.
- Implement `DeviceAuthorization()` and `AuthorizeDevice()` methods to handle device and user code generation, storage, and authorization.
- Update the OAuth endpoints to include `/device/authorize` for user code authorization and fix the discovery endpoint path for device authorization.
- Introduce MongoDB service in CI workflows for testing and enhance the unit test workflow with Redis setup.
- Update Go module dependencies to include necessary packages for the new features.

This commit significantly advances the OAuth capabilities of the application, enabling a more flexible authorization process for devices.
2026-03-04 15:19:48 +08:00
..
acl Enhance OpenAPI Integration and API Routing 2026-01-04 15:46:09 +08:00
authorized Add Yao authentication source and OAuth email handling 2026-02-07 19:44:10 +08:00
providers Refactor Data Store Implementation and Update Tests 2025-12-22 09:07:41 +08:00
types Enhance OAuth token handling and refresh logic 2026-02-21 18:06:27 +08:00
apikey.go Refactor OAuth access token handling and remove unused API key methods 2026-02-08 15:19:09 +08:00
authenticate.go Implement gRPC support in the Yao SDK 2026-03-04 13:17:48 +08:00
client.go Update OAuth client configuration and ID generation methods 2025-08-04 11:04:56 +08:00
client_test.go Add scope field to dynamic client registration tests 2025-08-04 11:19:45 +08:00
core.go Enhance OAuth Device Flow implementation 2026-03-04 15:19:48 +08:00
core_test.go Enhance token generation and storage to support optional extra claims 2025-10-11 19:56:29 +08:00
device.go Enhance OAuth Device Flow implementation 2026-03-04 15:19:48 +08:00
discovery.go Enhance OAuth Device Flow implementation 2026-03-04 15:19:48 +08:00
ERRORS.md Add ACL support to OAuth guard and error handling 2025-10-18 09:22:35 +08:00
guard.go Refactor OAuth token refresh handling to improve concurrency management 2026-03-02 14:12:22 +08:00
mcp.go Remove deprecated OAuth interfaces and types 2025-07-17 17:19:22 +08:00
oauth.go Enhance OAuth Device Flow implementation 2026-03-04 15:19:48 +08:00
oauth_test.go Refactor Store Management to Replace Badger with Xun 2025-12-22 09:27:32 +08:00
security.go Implement dynamic client registration and enhance OAuth service functionality 2025-07-18 12:11:21 +08:00
security_test.go Refactor test data handling for improved isolation and cleanup 2025-08-03 11:16:46 +08:00
signing.go Enhance OAuth token handling and refresh logic 2026-02-21 18:06:27 +08:00
TESTING_GUIDE.md Refactor Store Management to Replace Badger with Xun 2025-12-22 09:27:32 +08:00
token.go Enhance OAuth Device Flow implementation 2026-03-04 15:19:48 +08:00
token_test.go Enhance token generation and storage to support optional extra claims 2025-10-11 19:56:29 +08:00
user.go Add go-nanoid dependency and refactor user provider methods 2025-08-02 17:49:03 +08:00
user_test.go Refactor OAuth token management tests and remove deprecated methods 2025-07-21 18:59:26 +08:00