1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-06 05:42:30 +03:00

Advertise the client_credentials grant in the discovery document

This commit is contained in:
Quentin Gliech
2023-09-05 11:49:57 +02:00
parent 542d0a6073
commit b9edbda5e1

View File

@ -71,7 +71,11 @@ pub(crate) async fn get(
ResponseMode::Fragment,
]);
let grant_types_supported = Some(vec![GrantType::AuthorizationCode, GrantType::RefreshToken]);
let grant_types_supported = Some(vec![
GrantType::AuthorizationCode,
GrantType::RefreshToken,
GrantType::ClientCredentials,
]);
let token_endpoint_auth_methods_supported = client_auth_methods_supported.clone();
let token_endpoint_auth_signing_alg_values_supported =