Skip to content

Add authenticator attachment used during authentication to assertion payload #1668

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

Merged
merged 14 commits into from
Oct 7, 2021
14 changes: 14 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,10 @@ When this method is invoked, the user agent MUST execute the following algorithm
: <code><dfn for="assertionCreationData">signatureResult</dfn></code>
:: whose value is the bytes of the signature value returned by the [=authenticator=].

: <code><dfn for="assertionCreationData">transportResult</dfn></code>
:: whose value is the transport used to communicate to the [=authenticator=]. Values SHOULD be members of {{AuthenticatorTransport}}. If the user agent does not have any transport information, set the value to
null.

: <code><dfn for="assertionCreationData">userHandleResult</dfn></code>
:: If the [=authenticator=] returned a [=user handle=], set the value of [=userHandleResult=] to be the bytes of
the returned [=user handle=]. Otherwise, set the value of [=userHandleResult=] to null.
Expand Down Expand Up @@ -2242,6 +2246,11 @@ When this method is invoked, the user agent MUST execute the following algorithm
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of
<code>|assertionCreationData|.[=assertionCreationData/signatureResult=]</code>.

: {{AuthenticatorAssertionResponse/transport}}
:: If <code>|assertionCreationData|.[=assertionCreationData/transportResult=]</code> is null, set this
field to null. Otherwise, set this field to a new {{DOMString}}, containing the value of
<code>|assertionCreationData|.[=assertionCreationData/transportResult=]</code>.

: {{AuthenticatorAssertionResponse/userHandle}}
:: If <code>|assertionCreationData|.[=assertionCreationData/userHandleResult=]</code> is null, set this
field to null. Otherwise, set this field to a new {{ArrayBuffer}}, created using |global|'s
Expand Down Expand Up @@ -2429,6 +2438,7 @@ optionally evidence of [=user consent=] to a specific transaction.
interface AuthenticatorAssertionResponse : AuthenticatorResponse {
[SameObject] readonly attribute ArrayBuffer authenticatorData;
[SameObject] readonly attribute ArrayBuffer signature;
[SameObject] readonly attribute DOMString? transport;
[SameObject] readonly attribute ArrayBuffer? userHandle;
};
</xmp>
Expand All @@ -2445,6 +2455,10 @@ optionally evidence of [=user consent=] to a specific transaction.
: <dfn>signature</dfn>
:: This attribute contains the raw signature returned from the authenticator. See [[#sctn-op-get-assertion]].

: <dfn>transport</dfn>
:: This attribute contains the transport used to communicate to the [=authenticator=], or `null` if the user agent does not have any transport information.
See [[#sctn-op-get-assertion]].

: <dfn>userHandle</dfn>
:: This attribute contains the [=user handle=] returned from the authenticator, or null if the authenticator did not return a
[=user handle=]. See [[#sctn-op-get-assertion]].
Expand Down