1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Have all server metadata from the IANA registry

This commit is contained in:
Quentin Gliech
2022-01-11 11:20:17 +01:00
parent a30d4b58f0
commit b4f0f0d0be
3 changed files with 149 additions and 18 deletions

View File

@@ -82,15 +82,14 @@ pub(super) fn filter(config: &OAuth2Config) -> BoxedFilter<(Box<dyn Reply>,)> {
jwks_uri: base.join("oauth2/keys.json").ok(),
introspection_endpoint: base.join("oauth2/introspect").ok(),
userinfo_endpoint: base.join("oauth2/userinfo").ok(),
issuer: base,
registration_endpoint: None,
scopes_supported: None,
issuer: Some(base),
response_types_supported,
response_modes_supported,
grant_types_supported,
token_endpoint_auth_methods_supported,
token_endpoint_auth_signing_alg_values_supported,
code_challenge_methods_supported,
..Metadata::default()
};
warp::path!(".well-known" / "openid-configuration")