Table of Contents

Class AuthenticatorAssertionResponse

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The AuthenticatorAssertionResponse interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential. The relying party's server can verify this signature to authenticate a user, for example when they sign in.

[Value("AuthenticatorAssertionResponse")]
public class AuthenticatorAssertionResponse : AuthenticatorResponse
Inheritance
AuthenticatorAssertionResponse
Inherited Members

Remarks

An AuthenticatorAssertionResponse object instance is available in the Response property of a PublicKeyCredential object returned by a successful Get(CredentialRequestOptions) call.

This interface inherits from AuthenticatorResponse.

NOTE

This interface is restricted to top-level contexts. Use from within an iframe element will not have any effect.

-AuthenticatorAttestationResponse: the interface for the type of response given when creating a new credential
-AuthenticatorResponse: the parent interface

See also on MDN

Constructors

AuthenticatorAssertionResponse()

public AuthenticatorAssertionResponse()

Properties

AuthenticatorData

The authenticatorData property of the AuthenticatorAssertionResponse interface returns an {{jsxref("ArrayBuffer")}} containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator.

[Value("authenticatorData")]
public ArrayBuffer AuthenticatorData { get; }

Property Value

ArrayBuffer

An ArrayBuffer with a ArrayBufferByteLength of at least 37 bytes, which contains the data structure explained in Authenticator data.

Remarks

Signature

The signature read-only property of the
AuthenticatorAssertionResponse interface is an {{jsxref("ArrayBuffer")}}
object which is the signature of the authenticator for both
AuthenticatorData and a SHA-256 hash of
the client data
(ClientDataJSON).

[Value("signature")]
public ArrayBuffer Signature { get; }

Property Value

ArrayBuffer

An ArrayBuffer object which the signature of the authenticator (using its
private key) for both AuthenticatorData
and a SHA-256 hash given by the client for its data (the challenge, the origin, etc. and
available from
ClientDataJSON).

Remarks

This signature will be sent to the server for control, as part of the response. It
provides the proof that an authenticator does possess the private key which was used for
the credential's generation.

See also on MDN

UserHandle

The userHandle read-only property of the AuthenticatorAssertionResponse interface is an {{jsxref("ArrayBuffer")}} object providing an opaque identifier for the given user. Such an identifier can be used by the relying party's server to link the user account with its corresponding credentials and other data.

[Value("userHandle")]
public ArrayBuffer? UserHandle { get; }

Property Value

ArrayBuffer

An ArrayBuffer object representing an identifier for the current user. This is not intended to be human-readable. The relying party should make sure that the user.id passed into the originating create() call does not contain any personally identifying information (for example user name, email, or phone number).For Create(CredentialCreationOptions) calls made with a non-empty allowCredentials properties, the returned userHandle may be null.

Remarks

This value is specified as user.id in the options passed to the originating Create(CredentialCreationOptions) call.

-Create(CredentialCreationOptions) that sets the value of this property

See also on MDN