AuthenticatorAttestationResponse: attestationObject property
Web Authentication API
Web Authentication API
The **`attestationObject`** property of the
AuthenticatorAttestationResponse interface returns an
ArrayBuffer containing the new public key, as well as signature over the
entire `attestationObject` with a private key that is stored in the
authenticator when it is manufactured.
As part of the CredentialsContainer.create() call, an authenticator will
create a new key pair as well as an `attestationObject` for that key pair. The public key
that corresponds to the private key that has created the attestation signature is well
known; however, there are various well-known attestation public key chains for different
ecosystems (for example, Android or TPM attestations).
## Value
After decoding the [CBOR](https://datatracker.ietf.org/doc/html/rfc8949) encoded
`ArrayBuffer`, the resulting JavaScript object will contain the following
properties:
- `authData`
- : The [Authenticator data](/docs/Web/API/Web_Authentication_API/Authenticator_data) for the operation. Note that in AuthenticatorAssertionResponse, the `authenticatorData` is exposed as a property in a JavaScript object (see AuthenticatorAssertionResponse.authenticatorData) while in AuthenticatorAttestationResponse, the `authenticatorData` is a property in a [CBOR](https://datatracker.ietf.org/doc/html/rfc8949) map.
The same AuthenticatorAssertionResponse.authenticatorData field is used by both `AuthenticatorAttestationResponse` and by `AuthenticatorAssertionResponse`. When used in attestation, it contains an optional field, `attestedCredentialData`. This field is not included when used in the `AuthenticatorAssertionResponse`. The attestedCredentialData field contains the `credentialId` and `credentialPublicKey`.
- `fmt`
- : A text string that indicates the format of the attStmt. The [WebAuthn specification defines a number of formats](https://w3c.github.io/webauthn/#sctn-defined-attestation-formats); however, formats may also be defined
in other specifications and registered in an [IANA registry](https://w3c.github.io/webauthn/#sctn-att-fmt-reg). Formats
defined by WebAuthn are:
- `"packed"`
- `"tpm"`
- `"android-key"`
- `"android-safetynet"`
- `"fido-u2f"`
- `"none"`
- `attStmt`
- : An attestation statement that is of the format defined by `"fmt"`. For
now, [see the WebAuthn specification for details on each format](https://w3c.github.io/webauthn/#sctn-defined-attestation-formats).
## Examples
See [Creating a public key credential](/docs/Web/API/CredentialsContainer/create#creating_a_public_key_credential) for a detailed example.
## Specifications
## Browser compatibility
## See also
- CredentialsContainer.create(): the method used to create a statement with
a cryptographic `challenge` which signature by the authenticator is contained in `attStmt`,
with the specified `attestation` transport option.
Cite this
"AuthenticatorAttestationResponse: attestationObject property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy