diff --git a/src/api/client/oidc/discovery.rs b/src/api/client/oidc/discovery.rs index 08659397..f21bc23c 100644 --- a/src/api/client/oidc/discovery.rs +++ b/src/api/client/oidc/discovery.rs @@ -34,7 +34,7 @@ pub(crate) async fn get_auth_metadata( http::StatusCode::NOT_FOUND, ClientErrorBody::Standard { kind: ClientErrorKind::Unrecognized, - message: "This homeserver doesn't do OIDC authentication.".to_owned(), + message: "This homeserver has disabled OIDC authentication.".to_owned(), }, ))); let Some(ref auth) = services.server.config.auth else { diff --git a/src/api/router.rs b/src/api/router.rs index 6741fae8..755e0240 100644 --- a/src/api/router.rs +++ b/src/api/router.rs @@ -117,10 +117,10 @@ pub fn build(router: Router, server: &Server) -> Router { .ruma_route(&client::get_protocols_route) .route("/_matrix/client/unstable/thirdparty/protocols", get(client::get_protocols_route_unstable)) - // MSC2965 route. + // MSC2965: OAuth 2.0 Authorization Server Metadata discovery. .route("/_matrix/client/unstable/org.matrix.msc2965/auth_metadata", get(client::get_auth_metadata)) - // MSC2964 routes. + // MSC2964: Usage of OAuth 2.0 authorization code grant and refresh token grant. .route("/_matrix/client/unstable/org.matrix.msc2964/authorize", get(client::authorize)) .route("/_matrix/client/unstable/org.matrix.msc2964/authorize", @@ -129,7 +129,7 @@ pub fn build(router: Router, server: &Server) -> Router { post(client::oidc_login)) .route("/_matrix/client/unstable/org.matrix.msc2964/token", post(client::token)) - // MSC2966 route. + // MSC2966: Usage of OAuth 2.0 Dynamic Client Registration in Matrix. .route("/_matrix/client/unstable/org.matrix.msc2964/device/register", post(client::register_client)) .ruma_route(&client::send_message_event_route)