duo-labs / webauthn.io

The source code for webauthn.io, a demonstration of WebAuthn.
https://webauthn.io
BSD 3-Clause "New" or "Revised" License
651 stars 120 forks source link

feat/registration-hints #114

Closed MasterKale closed 9 months ago

MasterKale commented 9 months ago

This PR adds registration hints to the Advanced Settings drawer:

Screenshot 2024-01-03 at 1 20 00 PM

Hints can be specified from most preferred to least preferred (L3 draft):

Hints are provided in order of decreasing preference so, if two hints are contradictory, the first one controls.

To help support this on webauthn.io, the order in which the three checkboxes are checked controls the order of preference:

https://github.com/duo-labs/webauthn.io/assets/5166470/11cc5ce7-15af-4502-be20-b47e28bd5459

As per L3 as well, when hints are specified they will override the existing Attachment setting:

Hints MAY contradict information contained in credential transports and authenticatorAttachment. When this occurs, the hints take precedence.

As with other existing options, selected hints and their order of preference are persisted in the URL for ease of sharing configurations.