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

Return AuthenticationExtensionsAuthenticatorOutputs as part of registration and authentication #230

Merged
merged 14 commits into from
Jul 23, 2022

Conversation

agektmr
Copy link
Contributor

@agektmr agektmr commented Jul 21, 2022

This pull request:

  • Defines AuthenticationExtensionsAuthenticatorOutputs
  • Puts extensions in AuthenticatorData as part of output of verifyRegistrationResponse and verifyAuthenticationResponse.
  • Adds tests to parse extensions in AuthenticatorData in verifyRegistrationResponse and verifyAuthenticationResponse.

packages/server/src/helpers/decodeExtensions.ts Outdated Show resolved Hide resolved
packages/server/src/helpers/decodeExtensions.ts Outdated Show resolved Hide resolved
packages/server/src/helpers/decodeExtensions.ts Outdated Show resolved Hide resolved
packages/server/src/helpers/decodeExtensions.ts Outdated Show resolved Hide resolved
packages/server/src/helpers/decodeExtensions.ts Outdated Show resolved Hide resolved
@MasterKale
Copy link
Owner

MasterKale commented Jul 22, 2022

@agektmr Thank you for working on this! Just a few comments but otherwise this looks good.

agektmr added 2 commits July 22, 2022 15:35
- Rename `decodeExtensions` to `decodeAuthenticatorExtensions`
- Mention authenticator extension
- Include decoding in `parseAuthenticatorData`
- Add tests for `decodeAuthenticatorExtensions`
- Change `extensions` to `extensionsData` and add `extensionsDataBuffer`
agektmr and others added 2 commits July 22, 2022 22:15
DevicePublicKeyJSON => DevicePublicKeyAuthenticatorOutput
UvmJSON => UVMAuthenticatorOutput
- `decodeAuthenticatorExtensionData` => `decodeAuthenticatorExtensions`
- `exentionsData` => `authenticatorExtensionResults`
- Remove test case for malformed extension data
Copy link
Owner

@MasterKale MasterKale left a comment

Choose a reason for hiding this comment

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

Thank you for enduring all of my feedback, this might just be the last round of it before we can merge this 🤩

- `authenticatorExtensionResults` => `extensionsData`
- `authenticatorExtensionsDataBuffer` => `extensionsDataBuffer`
@MasterKale MasterKale merged commit ea6ced4 into MasterKale:master Jul 23, 2022
@MasterKale MasterKale added this to the v5.4.0 milestone Jul 23, 2022
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