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

Support SSO login in the new flow. #6204

Merged
merged 5 commits into from
May 31, 2022
Merged

Support SSO login in the new flow. #6204

merged 5 commits into from
May 31, 2022

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented May 25, 2022

This PR adds the use of SSOAuthenticationPresenter to the new flow. Additionally

  • Updates the deep link signalling to go via the AuthenticationService instead of through the LegacyAppDelegate.
  • Fixes a bug in old flow contained a bug when SFSafariViewController was used where the vc was never dismissed.
  • Updates the CI to use macOS 12 and Xcode 13.4 so that #unavailable can be used.
  • Allows SSO button icons to scale with dynamic type.
  • Adds onCommit actions to the text fields on the login/registration screens.
Light Mode Dark Mode iPad
Simulator Screen Shot - iPhone 13 Pro - 2022-05-25 at 18 18 54 Simulator Screen Shot - iPhone 13 Pro - 2022-05-25 at 18 18 25 Simulator Screen Shot - iPad Pro (11-inch) (3rd generation) - 2022-05-25 at 18 19 11

@pixlwave pixlwave changed the base branch from develop to doug/5654_login_flow May 25, 2022 15:47
@github-actions
Copy link

github-actions bot commented May 25, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/mErdka

Fix SSO buttons pressed appearance.
@pixlwave pixlwave marked this pull request as ready for review May 26, 2022 13:47
@pixlwave pixlwave requested review from a team, SBiOSoftWhare and ismailgulek and removed request for a team May 26, 2022 13:47
Scale SSO button icon with dynamic type.
Add an onCommit parameter to RoundedBorderTextField and use to submit instead of onEditingChanged.

return isPressed ? theme.colors.accent.opacity(0.6) : theme.colors.accent
private func opacity(when isPressed: Bool) -> CGFloat {
guard isEnabled else { return 0.6 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: We can make a constant for the 0.6 even internal in the method.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, I didn't ignore this. I'm going to come back to it in the DesignKit PR instead of here :)

Base automatically changed from doug/5654_login_flow to develop May 31, 2022 16:04
@pixlwave pixlwave merged commit 8e99d54 into develop May 31, 2022
@pixlwave pixlwave deleted the doug/5151_sso_login branch May 31, 2022 16:05
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.

3 participants