Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/matrix: cut trailing / from SSO req, unbreak iOS Element #26

Merged

Conversation

lschuermann
Copy link
Member

Element iOS will send a request to cause Synapse to redirect to the SSO provider with a trailing slash:

/_matrix/client/r0/login/sso/redirect/?...

This causes synapse to respond with an M_UNRECOGNIZED error. Thus, for now, explicitly match on that URL and remove the trailing slash. nginx takes care of the query parameters. This looks exactly like issue 4785 1; however this should have been fixed in all recent versions of Element iOS.

Either way, this seems like a good and uncontroversial hotfix for now. With this change Element on iOS is confirmed to be working.

Element iOS will send a request to cause Synapse to redirect to the
SSO provider with a trailing slash:

    /_matrix/client/r0/login/sso/redirect/?...

This causes synapse to respond with an M_UNRECOGNIZED error. Thus, for
now, explicitly match on that URL and remove the trailing slash. nginx
takes care of the query parameters. This looks exactly like issue 4785
[1]; however this should have been fixed in all recent versions of
Element iOS.

[1]: element-hq/element-ios#4785
@alevy alevy merged commit 38c900d into princeton-sns:main Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants