-
Notifications
You must be signed in to change notification settings - Fork 257
Deprecate Authenticator Attachment in favor of Hints #2383
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
base: main
Are you sure you want to change the base?
Changes from all commits
91dad14
875b941
414e682
d624835
68ef7ef
f48957d
9ac5c88
c715b3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /bikeshed/ | ||
| .vagrant/ | ||
| .vs/ | ||
| index.html |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3703,7 +3703,9 @@ attributes. | |
|
|
||
| <div dfn-type="dict-member" dfn-for="AuthenticatorSelectionCriteria"> | ||
| : <dfn>authenticatorAttachment</dfn> | ||
| :: If this member is present, eligible [=authenticators=] are filtered to be only those authenticators attached with the specified | ||
| :: Note: This member is deprecated in favor of {{PublicKeyCredentialCreationOptions/hints}}. [=[RPS]=] SHOULD use {{PublicKeyCredentialHint/client-device}} instead of {{AuthenticatorAttachment/platform}}, and {{PublicKeyCredentialHint/security-key}} and/or {{PublicKeyCredentialHint/hybrid}} instead of {{AuthenticatorAttachment/cross-platform}} for [=registration ceremony|registration=]. | ||
|
|
||
| If this member is present, eligible [=authenticators=] are filtered to be only those authenticators attached with the specified | ||
| [[#enum-attachment|authenticator attachment modality]] (see also [[#sctn-authenticator-attachment-modality]]). | ||
| If this member is absent, then any attachment modality is acceptable. | ||
| The value SHOULD be a member of {{AuthenticatorAttachment}} but [=client platforms=] MUST ignore unknown values, | ||
|
|
@@ -3732,6 +3734,8 @@ attributes. | |
|
|
||
| ### Authenticator Attachment Enumeration (enum <dfn enum>AuthenticatorAttachment</dfn>) ### {#enum-attachment} | ||
|
|
||
| Note: Authenticator Attachment is being deprecated in favor of {{PublicKeyCredentialHint}}. The {{AuthenticatorAttachment/platform}} value is superseded by {{PublicKeyCredentialHint/client-device}}, and {{AuthenticatorAttachment/cross-platform}} is superseded by {{PublicKeyCredentialHint/security-key}} and {{PublicKeyCredentialHint/hybrid}}. [=[RPS]=] SHOULD use {{PublicKeyCredentialCreationOptions/hints}} instead of {{AuthenticatorSelectionCriteria/authenticatorAttachment}}. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a similar note here: without mentioning the ability to order hints by preference, it'll look to RPs like they must specify cross-platform hints as |
||
|
|
||
| This enumeration's values describe [=authenticators=]' [=authenticator attachment modality|attachment modalities=]. | ||
| [=[RPS]=] use this to express a preferred [=authenticator attachment modality=] | ||
| when calling {{CredentialsContainer/create()|navigator.credentials.create()}} | ||
|
|
@@ -4458,17 +4462,17 @@ Note: The {{PublicKeyCredentialHint}} enumeration is deliberately not referenced | |
| : <dfn>security-key</dfn> | ||
| :: Indicates that the [=[RP]=] believes that users will satisfy this request with a physical security key. For example, an enterprise [=[RP]=] may set this hint if they have issued security keys to their employees and will only accept those [=authenticators=] for [=registration ceremony|registration=] and [=authentication ceremony|authentication=]. | ||
|
|
||
| For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/cross-platform}}. | ||
| This hint supersedes the deprecated {{AuthenticatorAttachment/cross-platform}} value of {{AuthenticatorSelectionCriteria/authenticatorAttachment}}. For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/cross-platform}}. | ||
|
|
||
| : <dfn>client-device</dfn> | ||
| :: Indicates that the [=[RP]=] believes that users will satisfy this request with a [=platform authenticator=] attached to the [=client device=]. | ||
|
|
||
| For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/platform}}. | ||
| This hint supersedes the deprecated {{AuthenticatorAttachment/platform}} value of {{AuthenticatorSelectionCriteria/authenticatorAttachment}}. For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/platform}}. | ||
|
|
||
| : <dfn>hybrid</dfn> | ||
| :: Indicates that the [=[RP]=] believes that users will satisfy this request with general-purpose [=authenticators=] such as smartphones. For example, a consumer [=[RP]=] may believe that only a small fraction of their customers possesses dedicated security keys. This option also implies that the local [=platform authenticator=] should not be promoted in the UI. | ||
|
|
||
| For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/cross-platform}}. | ||
| This hint supersedes the deprecated {{AuthenticatorAttachment/cross-platform}} value of {{AuthenticatorSelectionCriteria/authenticatorAttachment}}. For compatibility with older user agents, when this hint is used in {{PublicKeyCredentialCreationOptions}}, the {{AuthenticatorSelectionCriteria/authenticatorAttachment}} SHOULD be set to {{AuthenticatorAttachment/cross-platform}}. | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hints support ordering by preference, a nuance that's not currently captured in this value-mapping guidance. I'd rather the nuance be thoroughly explained in the section on User-agent Hints Enumeration, but perhaps here we can simply mention it: