yao/openapi/oauth
Max 0bd6bdcda3 Refactor OAuth guard and ACL error handling for improved response structure
- Updated the OAuth guard to utilize a standardized response format for error handling, enhancing consistency across error responses.
- Integrated detailed error information for insufficient scope and permission denied scenarios, providing clearer insights into access issues.
- Modified the ACL enforcement logic to return structured error details, allowing for better handling of permission-related errors.
- Enhanced the ErrorResponse struct to include optional fields for reason, required scopes, and missing scopes, following OAuth 2.0 extensibility guidelines.
2025-10-20 16:23:12 +08:00
..
acl Refactor OAuth guard and ACL error handling for improved response structure 2025-10-20 16:23:12 +08:00
authorized Enhance OAuth guard with authorized info handling and ACL integration 2025-10-20 08:50:20 +08:00
providers Add invitation model and related functionality 2025-10-16 19:08:54 +08:00
types Refactor OAuth guard and ACL error handling for improved response structure 2025-10-20 16:23:12 +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 token generation and storage to support optional extra claims 2025-10-11 19:56:29 +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 Remove deprecated OAuth interfaces and types 2025-07-17 17:19:22 +08:00
discovery.go Implement JWKS endpoint and enhance OAuth tests 2025-07-21 20:07:46 +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 guard and ACL error handling for improved response structure 2025-10-20 16:23:12 +08:00
mcp.go Remove deprecated OAuth interfaces and types 2025-07-17 17:19:22 +08:00
oauth.go Refactor user provider methods to return string IDs and update test data handling 2025-08-03 10:25:09 +08:00
oauth_test.go Refactor test data handling for improved isolation and cleanup 2025-08-03 11:16:46 +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 Add Yao user ID support in OIDC and token generation 2025-10-14 09:56:29 +08:00
TESTING_GUIDE.md Refactor test data handling for improved isolation and cleanup 2025-08-03 11:16:46 +08:00
token.go Enhance token generation and storage to support optional extra claims 2025-10-11 19:56:29 +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