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

Fix redirection issue when logging in with single sign on. Fixes #4785. #4817

Merged
merged 2 commits into from
Sep 14, 2021

Conversation

pengufrost
Copy link
Contributor

@pengufrost pengufrost commented Sep 10, 2021

Fixes #4785

Signed-off-by: Chelsea Finnie [email protected]

Pull Request Checklist

  • I read the contributing guide
  • UI change has been tested on both light and dark themes, in portrait and landscape orientations and on iPhone and iPad simulators
  • Pull request is based on the develop branch
  • Pull request contains a changelog file in ./changelog.d
  • Pull request includes screenshots or videos of UI changes
  • Pull request includes a sign off

@SBiOSoftWhare
Copy link
Contributor

Hi @pengufrost, thanks for your contribution. Your fix works in the case when there is no SSO identity provider defined. If you choose a SSO provider on Matrix.org like GitHub for example it will not work. We just need a small addition to the SSOAuthenticationService.swift code here to handle identity providers. Just adding a / when needed by doing ssoRedirectPath.append("/\(identityProvider)") instead of ssoRedirectPath.append(identityProvider) will make the fix working for all cases :)

@pengufrost
Copy link
Contributor Author

pengufrost commented Sep 13, 2021

Hi @pengufrost, thanks for your contribution. Your fix works in the case when there is no SSO identity provider defined. If you choose a SSO provider on Matrix.org like GitHub for example it will not work. We just need a small addition to the SSOAuthenticationService.swift code here to handle identity providers. Just adding a / when needed by doing ssoRedirectPath.append("/\(identityProvider)") instead of ssoRedirectPath.append(identityProvider) will make the fix working for all cases :)

Cheers, added the change to the branch. Tested that this works with our SSO service.

@SBiOSoftWhare
Copy link
Contributor

Cheers, added the change to the branch. Tested that this works with our SSO service.

Perfect! Thank you very much for this update.

@SBiOSoftWhare SBiOSoftWhare merged commit 2abaff8 into element-hq:develop Sep 14, 2021
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.

Latest version of element in app store can't login get M_UNRECOGNIZED error
2 participants