validateTokenEndpointAuthMethod validates token endpoint authentication method
(method OAuth2TokenEndpointAuthMethod)
| 226 | |
| 227 | // validateTokenEndpointAuthMethod validates token endpoint authentication method |
| 228 | func validateTokenEndpointAuthMethod(method OAuth2TokenEndpointAuthMethod) error { |
| 229 | if !method.Valid() { |
| 230 | return xerrors.Errorf("unsupported token endpoint auth method: %s", method) |
| 231 | } |
| 232 | |
| 233 | return nil |
| 234 | } |
| 235 | |
| 236 | // ValidatePKCECodeChallengeMethod validates PKCE code_challenge_method parameter. |
| 237 | // Per OAuth 2.1, only S256 is supported; plain is rejected for security reasons. |