yao/openapi
Max 2b171c3540 Refactor OAuth token handling and enhance grant type support
- Consolidated token grant handling into a unified method for authorization code, client credentials, and device code grants, improving code organization and reducing duplication.
- Introduced new methods for handling token exchange and refresh token grants, ensuring compliance with relevant RFCs.
- Enhanced error handling and validation for client credentials and grant types, improving robustness and security.
- Updated tests to utilize real authorization codes and ensure comprehensive coverage of the new functionality.
2025-07-21 17:40:08 +08:00
..
agent Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
audit Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
docs Add OpenAPI support and enhance configuration handling 2025-07-20 18:52:30 +08:00
job Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
kb Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
oauth Refactor OAuth token handling and enhance grant type support 2025-07-21 17:40:08 +08:00
config.go Add OpenAPI support and enhance configuration handling 2025-07-20 18:52:30 +08:00
config_test.go Implement JSON marshaling and unmarshaling for configuration with duration parsing 2025-07-20 17:49:01 +08:00
hello.go Add OpenAPI support and enhance configuration handling 2025-07-20 18:52:30 +08:00
hello_test.go Implement OAuth endpoint logic and enhance test setup 2025-07-21 15:34:13 +08:00
oauth.go Refactor OAuth token handling and enhance grant type support 2025-07-21 17:40:08 +08:00
oauth_test.go Add OAuth authorization tests and improve error handling 2025-07-21 16:21:40 +08:00
oauth_token_test.go Refactor OAuth token handling and enhance grant type support 2025-07-21 17:40:08 +08:00
openapi.go Refactor OAuth endpoint structure and add well-known handlers 2025-07-20 19:11:16 +08:00
openapi_test.go Refactor OAuth token handling and enhance grant type support 2025-07-21 17:40:08 +08:00
README.md Update dependencies in go.mod and go.sum to latest versions for improved stability and performance 2025-07-13 09:15:54 +08:00
response.go Enhance OAuth functionality with registration tests and response improvements 2025-07-21 16:07:40 +08:00
types.go Implement JSON marshaling and unmarshaling for configuration with duration parsing 2025-07-20 17:49:01 +08:00
well-known.go Refactor OAuth endpoint structure and add well-known handlers 2025-07-20 19:11:16 +08:00

Yao OpenAPI

OAuth

Agent

Knowledge Base

Audit Log