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/improve resident key registration options #259

Merged
merged 3 commits into from
Aug 19, 2022

Conversation

MasterKale
Copy link
Owner

@MasterKale MasterKale commented Aug 17, 2022

This PR adjusts logic related to how the old requireResidentKey and new residentKey authentication selection options influence what either is set to in the output from generateRegistrationOptions():

  • If residentKey is absent, then it will be set to "required" if requireResidentKey is present and true
  • Otherwise if requireResidentKey is absent then it will be set to whether or not residentKey is set to "required"

This should help implementers targeting L1 of the spec generate options that will trigger discoverable credential creation in environments targeting L2 of the spec as well.

Fixes #255

@MasterKale MasterKale added the package:server @simplewebauthn/server label Aug 18, 2022
@MasterKale MasterKale added this to the 6.1.0 milestone Aug 18, 2022
@MasterKale MasterKale merged commit 9e68a48 into master Aug 19, 2022
@MasterKale MasterKale deleted the fix/improve-resident-key-registration-options branch August 19, 2022 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:server @simplewebauthn/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some suggestions on the residentKey
1 participant