-
Notifications
You must be signed in to change notification settings - Fork 499
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
Latest version of element in app store can't login get M_UNRECOGNIZED error #4785
Comments
Just noting that when this failure happens we see this in the homeserver.log:
Compared to a successful login via a web client:
The key difference seems to be the trailing '/' on the URL path. |
Noting that the change to Riot/Modules/Authentication/SSO/SSOURLConstants.swift is very likely the cause of this issue |
…ent-hq#4785. Signed-off-by: Chelsea Finnie <[email protected]>
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
Steps to reproduce
Around a week ago logins started to fail, presumably with an auto update. After being asked to re-login again it opens a webview popup which connects to our home server and then shows this error:
At first we thought it was something with our homeserver or our SSO but when attempting to connect to matrix.org we get the same error. It seems everyone in our organisation is getting the same error.
We have trialed using the Syphon iphone mobile app which does correctly connect (but the app seem beta quality) so it isn't an issue with our server or SSO.
What happened?
What did you expect?
Be prompted with the normal SSO login for our home server
What happened?
Your phone model
iPhone 11
Operating system version
ios 14.71
Application version
1.5.1
Homeserver
chat.catalyst-au.net
Have you submitted a rageshake?
No -Tried but could not get this to work
The text was updated successfully, but these errors were encountered: