fix(oauth): rfc8414 should judement the response_types (#485)

response_types_supported should be judement while try to do 'Authorization Code Flow'

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
jokemanfire 2025-12-10 00:18:18 +08:00 • committed by GitHub
commit bce0555068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -529,6 +529,7 @@ async fn oauth_authorization_server() -> impl IntoResponse {
token_endpoint: format!("http://{}/oauth/token", BIND_ADDRESS),
scopes_supported: Some(vec!["profile".to_string(), "email".to_string()]),
registration_endpoint: Some(format!("http://{}/oauth/register", BIND_ADDRESS)),
response_types_supported: Some(vec!["code".to_string()]),
issuer: Some(BIND_ADDRESS.to_string()),
jwks_uri: Some(format!("http://{}/oauth/jwks", BIND_ADDRESS)),
additional_fields,