1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Properly advertise all the supported JWT verification algorithms

This commit is contained in:
Quentin Gliech
2022-09-13 15:00:29 +02:00
parent fca6cfa393
commit 6cff677550

View File

@ -42,6 +42,7 @@ pub(crate) async fn get(
OAuthClientAuthenticationMethod::None,
]);
// Those are the algorithms supported by `mas-jose`
let client_auth_signing_alg_values_supported = Some(vec![
JsonWebSignatureAlg::Hs256,
JsonWebSignatureAlg::Hs384,
@ -49,6 +50,12 @@ pub(crate) async fn get(
JsonWebSignatureAlg::Rs256,
JsonWebSignatureAlg::Rs384,
JsonWebSignatureAlg::Rs512,
JsonWebSignatureAlg::Ps256,
JsonWebSignatureAlg::Ps384,
JsonWebSignatureAlg::Ps512,
JsonWebSignatureAlg::Es256,
JsonWebSignatureAlg::Es384,
JsonWebSignatureAlg::Es256K,
]);
// This is how we can sign stuff