Add conditional for login flows; filter out SSO when no providers configured.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-01-03 04:51:39 +00:00
parent 11038b0ec7
commit bd0a0acf4a
4 changed files with 74 additions and 26 deletions

View File

@@ -75,7 +75,8 @@ pub(crate) async fn sso_login_route(
_body: Ruma<sso_login::v3::Request>,
) -> Result<sso_login::v3::Response> {
Err!(Request(NotImplemented(
"SSO login without specific provider has not been implemented."
"sso_custom_providers_page has been enabled but this URL has not been overridden with \
any custom page listing the available providers..."
)))
}