Skip to content

Commit 359ba0f

Browse files
emlunequalsJeffH
andauthored
Issue 1618 review sbweeden attachment transport (#3)
* Describe how to determine authenticator attachment from transports * Accept @equalsJeffH's rewrite of #sctn-attachment-from-transports Co-authored-by: =JeffH <[email protected]> Co-authored-by: =JeffH <[email protected]>
1 parent e751287 commit 359ba0f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

index.bs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,6 +2429,26 @@ To remove the need to parse CBOR at all in many cases, {{AuthenticatorAttestatio
24292429

24302430
Note: {{AuthenticatorAttestationResponse/getPublicKey()}} and {{AuthenticatorAttestationResponse/getAuthenticatorData()}} were only added in level two of this spec. [=[RPS]=] SHOULD use feature detection before using these functions by testing the value of `'getPublicKey' in AuthenticatorAttestationResponse.prototype`. [=[RPS]=] that require this function to exist may not interoperate with older user-agents.
24312431

2432+
2433+
#### Determining Authenticator Attachment from Credential Transports #### {#sctn-attachments-from-transports}
2434+
2435+
As a part of creating a {{PublicKeyCredential}} object, as the result of a [=registration ceremony|registration=] or [=authentication ceremony=], the [=client platform=] determines the [=authenticator attachment modality=] and reports it in {{PublicKeyCredential/authenticatorAttachment}}. This section defines how to make that determination.
2436+
2437+
If the client platform
2438+
<dl class="switch">
2439+
: cannot determine the {{transports}} used or the transport is not a member of {{AuthenticatorTransport}}, then
2440+
:: the [=authenticator attachment modality=] is unknown, and the value of {{PublicKeyCredential/authenticatorAttachment}} MUST be set to null.
2441+
2442+
: used an {{AuthenticatorTransport/internal}} transport, then
2443+
:: {{PublicKeyCredential/authenticatorAttachment}} MUST be set to "platform".
2444+
2445+
: used a {{transports|transport}} that is a member of {{transports}} other than {{AuthenticatorTransport/internal}},
2446+
:: {{PublicKeyCredential/authenticatorAttachment}} MUST be set to "cross-platform".
2447+
2448+
Note: An [=authenticator's=] [=authenticator attachment modality|attachment modality=] could change over time.
2449+
For example, a mobile phone might at one time only support [=platform attachment=]
2450+
but later receive updates to support [=cross-platform attachment=] as well.
2451+
24322452
### Web Authentication Assertion (interface <dfn interface>AuthenticatorAssertionResponse</dfn>) ### {#iface-authenticatorassertionresponse}
24332453

24342454
The {{AuthenticatorAssertionResponse}} interface represents an [=authenticator=]'s response to a client's request for

0 commit comments

Comments
 (0)