Skip to content

Refactor WebAuthn verification to webauthn package#8665

Merged
aduth merged 1 commit intomainfrom
aduth-refactor-webauthn-verify
Jun 29, 2023
Merged

Refactor WebAuthn verification to webauthn package#8665
aduth merged 1 commit intomainfrom
aduth-refactor-webauthn-verify

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jun 27, 2023

🎫 Ticket

Related to LG-9873

🛠 Summary of changes

Refactors and moves code related to WebAuthn credential verification to the @18f/identity-webauthn package.

Similar to #8650. Extracted from #8639.

Why?

  • Better testability and separation of concerns
  • Consolidate WebAuthn-related behaviors
  • Removes the last of the code to finally eliminate the app/javascript/app folder

Note that the approach here was to try to simplify the diff for the current usage ahead of revisions slated for #8639. Specifically, passing credentialIds as a comma-separated string is not the ideal interface, but doing so helps simplify the diff, and this is slated to be changed in #8639.

📜 Testing Plan

Ensure no regressions in signing in with Face or Touch Unlock or Security Key.

Check that yarn test passes.

@aduth aduth requested a review from a team June 27, 2023 13:09
@aduth aduth changed the title Refactor WebAuthn enrollment to webauthn package Refactor WebAuthn verification to webauthn package Jun 27, 2023
@aduth aduth force-pushed the aduth-refactor-webauthn-verify branch from b0ff7a2 to f613a25 Compare June 27, 2023 15:19
changelog: Internal, Code Quality, Consolidate WebAuthn code
@aduth aduth force-pushed the aduth-refactor-webauthn-verify branch from f613a25 to 05a67b1 Compare June 28, 2023 18:31
@aduth aduth merged commit ada643d into main Jun 29, 2023
@aduth aduth deleted the aduth-refactor-webauthn-verify branch June 29, 2023 15:36
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