TsgcWSAPIServer_WebAuthnイベント › OnWebAuthnAuthenticationOptionsResponse

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;

イベントに戻る