Logging in on a server which supports both local password and SSO without `identity_providers` only prompts for local password
When Fractal discovers a server which has both the m.login.password
and m.login.sso
, it only shows the username/password login method.
The m.login.sso
method must also have identity_providers
set (this field is optional).
Steps to reproduce
- Open Fractal
- Use
synapse-oidc.lab.element.dev
as homeserver - Only the username/password prompt should be shown, even though this server supports
m.login.sso
Information
-
This bug is reproducible from the latest nightly build - Fractal Version: 6-047f7c41
- OS Version: Fedora 39
- Installation Source: GNOME Apps Nightly
- Homeserver: synapse-oidc.lab.element.dev
The logic to display those buttons is here: https://gitlab.gnome.org/World/fractal/-/blob/047f7c41a53654b1ea8af77dac841e81249a0373/src/login/method_page.rs#L162-171
It doesn't add the "other SSO" button if the identity_providers
is empty.
Edited by Alexandre Franke