--- title: AuthenticatorAssertionResponse slug: Web/API/AuthenticatorAssertionResponse tags: - API - Authentication - AuthenticatorAssertionResponse - Interface - Reference - Web Authentication API - WebAuthn - インターフェイス translation_of: Web/API/AuthenticatorAssertionResponse ---
AuthenticatorAssertionResponse は Web Authentication API のインターフェイスで、 {{domxref('CredentialsContainer.get()')}} に {{domxref('PublicKeyCredential')}} を渡すと返されます。そして、キーペアを持ち、認証付きリクエストが有効で承認されていることをサービスに証明します。
このインターフェイスは {{domxref("AuthenticatorResponse")}} を継承しています。
メモ: このインターフェイスは最上位のコンテキストに限定されています。 {{HTMLElement("iframe")}} 要素の中で使用しても、何も効果がありません。
AuthenticatorAssertionResponse.clientDataJSON {{securecontext_inline}}{{readonlyinline}}なし。
var options = {
challenge: new Uint8Array([/* bytes sent from the server */])
};
navigator.credentials.get({ "publicKey": options })
.then(function (credentialInfoAssertion) {
var assertionResponse = credentialInfoAssertion.response;
// Do something specific with the response
// send assertion response back to the server
// to proceed with the control of the credential
}).catch(function (err) {
console.error(err);
});
| 仕様書 | 状態 | 備考 |
|---|---|---|
| {{SpecName('WebAuthn', '#iface-authenticatorassertionresponse', 'AuthenticatorAssertionResponse interface')}} | {{Spec2('WebAuthn')}} | 初回定義 |
{{Compat("api.AuthenticatorAssertionResponse")}}