From 2d62e3cfb1744cd5d4d4b5912c20058fdd7d2bcf Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 24 Jun 2025 18:44:30 +0800 Subject: [PATCH] feat: add PKCE code challenge methods support to AuthServerMetadata - Add CodeChallengeMethodsSupported field to AuthServerMetadata struct to support PKCE code challenge methods Signed-off-by: Bo-Yi Wu --- client/transport/oauth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/transport/oauth.go b/client/transport/oauth.go index aebbd316e..5406b4d41 100644 --- a/client/transport/oauth.go +++ b/client/transport/oauth.go @@ -105,6 +105,7 @@ type AuthServerMetadata struct { ResponseTypesSupported []string `json:"response_types_supported"` GrantTypesSupported []string `json:"grant_types_supported,omitempty"` TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported,omitempty"` + CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported,omitempty"` } // OAuthHandler handles OAuth authentication for HTTP requests