TsgcWSAPIServer_WebAuthn › イベント › OnWebAuthnAuthenticationOptionsResponse
サーバーが /authenticate/begin の PublicKeyCredentialRequestOptions レスポンスを構築した後に発生します。アプリケーションが生成されたチャレンジを検査または永続化できます。
property OnWebAuthnAuthenticationOptionsResponse: TsgcWebAuthnOnAuthenticationOptionsResponse;
// TsgcWebAuthnOnAuthenticationOptionsResponse = procedure(Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request; const aResponse: TsgcWebAuthn_AuthenticationOptions_Response) of object
—
OnWebAuthnAuthenticationOptionsRequest のコンパニオン。サーバーが完全な PublicKeyCredentialRequestOptions ペイロード(チャレンジ、RP id、ユーザー確認、トランスポート付き allowCredentials、タイムアウト)を構築した後に発生します。クラスター化されたデプロイメントで共有ストアにチャレンジを保持したり、レスポンスがクライアントにシリアル化される前に発行されたオプションを監査したりメトリクスを公開するために使用します。
procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnAuthenticationOptionsResponse(
Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request;
const aResponse: TsgcWebAuthn_AuthenticationOptions_Response);
begin
SaveChallenge(aRequest.User.Name, aResponse.Challenge);
end;