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

Passkeys: Passkey authentication #1191

Merged
merged 5 commits into from
Jul 17, 2024
Merged

Conversation

charliescheer
Copy link
Contributor

Fix

So the next step in setting up passkeys on SN is authenticating with passkeys on Mac. So in this PR I have done that.

Note that because we are reworking the auth UI, I have decided to take over the UI for login with email that was recently added and reuse it for my purposes. That is a temporary change since we are using a feature branch and it should be redone to work in the new UI before merging into trunk.

Test

(Required) List the steps to test the behavior. For example:

  1. Clean install Simplenote. Click on Log in, enter your email and tap on Log in With Passkeys. Confirm animations appear and the ui is blocked
  2. If there are passkeys on your device for that email you should see apples auth ui. Dismiss this without authenticating. Confirm you see an alert modal saying auth failed (if you don't have a passkey for that account you will need to log in and create one, see PR Charlie/passkey registration #1190 for details)
  3. Attempt the login again, this time verify the apple authentication when prompted. Confirm the UI unlocks and that you are logged into your SN account.

Review

(Required) Add instructions for reviewers. For example:

Only one developer is required to review these changes, but anyone can perform the review.

Release

(Required) Add a concise statement to RELEASE-NOTES.txt if the changes should be included in release notes. Include details about updating the notes in this section. For example:

These changes do not require release notes.

@charliescheer charliescheer added the [feature] login Anything relating to login label Jul 16, 2024
@charliescheer charliescheer self-assigned this Jul 16, 2024
@charliescheer charliescheer changed the base branch from trunk to charlie/passkey-registration July 16, 2024 20:11
Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -118,7 +135,7 @@ extension AuthenticationMode {
secondaryActionSelector: nil,
switchActionText: SignupStrings.switchAction,
switchActionTip: SignupStrings.switchTip,
switchTargetMode: { .loginWithMagicLink },
switchTargetMode: { .loginWithPasskeys },
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if the default should be Passkeys, but good to leave for now!

Base automatically changed from charlie/passkey-registration to feature/passkeys July 17, 2024 19:02
@charliescheer charliescheer merged commit fc2d476 into feature/passkeys Jul 17, 2024
8 checks passed
@charliescheer charliescheer deleted the charlie/passkey-auth branch July 17, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[feature] login Anything relating to login
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants