Crash when trying to login to homeserver that does not return identity_providers
field of m.login.sso
flow schema
#1369
Labels
identity_providers
field of m.login.sso
flow schema
#1369
Describe the bug
Cinny is unable to sign in to a Matrix homeserver that offers the
m.login.sso
login type but where the homeserver does not provide a list of identity providers.Instead the user ends up stuck on a blank screen.
Reproduction
synapse-oidc.lab.element.dev
into the input fieldExpected behavior
In the case that the homeserver does not specify a list of identity providers it should show a single SSO login button labelled something similar to "Continue with SSO".
Platform and versions
1. OS: macOS 2. Browser: Chrome 115.0.5790.114 3. App: 2.2.6 (app.cinny.in) 4. Homeserver: `synapse-oidc.lab.element.dev`
Additional context
The response to
GET https://synapse-oidc.lab.element.dev/_matrix/client/v3/login
is:Which is valid as per the
m.login.sso flow schema
section of https://spec.matrix.org/v1.7/client-server-api/#client-login-via-sso because theidentity_providers
field is optional:The text was updated successfully, but these errors were encountered: