Firefox Tomorrow

web api interface

AuthenticatorAttestationResponse

View on MDN ↗

Secure context

The AuthenticatorAttestationResponse interface of the Web Authentication API is the result of a WebAuthn credential registration. It contains information about the credential that the server needs to perform WebAuthn assertions, such as its credential ID and public key.

An AuthenticatorAttestationResponse object instance is available in the response property of a PublicKeyCredential object returned by a successful create() call.

This interface inherits from AuthenticatorResponse.

[!NOTE] This interface is restricted to top-level contexts. Use of its features from within an <iframe> element will not have any effect.

Instance properties

Also inherits properties from its parent, AuthenticatorResponse.

  • attestationObject Read only

    • : An ArrayBuffer containing authenticator data and an attestation statement for a new key pair generated by the authenticator.
  • clientDataJSON Read only

    • : Inherited from AuthenticatorResponse, this property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential — i.e., when create() is called with a publicKey option. This data contains some information from the options passed into the create() call, and some information controlled by the browser.

Instance methods

Examples

See Creating a public key credential for a detailed example.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also