W3cubDocs

/Web APIs

AuthenticatorAssertionResponse: signature property

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The signature read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object which is the signature of the authenticator for both AuthenticatorAssertionResponse.authenticatorData and a SHA-256 hash of the client data (AuthenticatorAssertionResponse.clientDataJSON).

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.

Value

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

Examples

See User login using the WebAuthn API for a detailed example.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
signature 67 18
60Only supports USB U2F tokens.
No 54 13 No 70 92
60–92Only supports USB U2F tokens.
48 13 10.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/signature