TsgcWSAPIServer_WebAuthnイベント › OnWebAuthnRegistrationOptionsResponse

OnWebAuthnRegistrationOptionsResponse イベント

サーバーが /register/begin の PublicKeyCredentialCreationOptions 応答を構築した後に発生します。アプリケーションが生成されたチャレンジを検査または保持できます。

構文

property OnWebAuthnRegistrationOptionsResponse: TsgcWebAuthnOnRegistrationOptionsResponse;
// TsgcWebAuthnOnRegistrationOptionsResponse = procedure(Sender: TObject; const aRequest: TsgcWebAuthn_RegistrationOptions_Request; const aResponse: TsgcWebAuthn_RegistrationOptions_Response) of object

デフォルト値

解説

OnWebAuthnRegistrationOptionsRequest の対応物。サーバーが完全な PublicKeyCredentialCreationOptions ペイロード (チャレンジ、RP、ユーザー ID、excludeCredentials、pubKeyCredParams、attestation、authenticator selection) を構築した後に発生します。クラスター化されたデプロイメントで共有ストアにチャレンジを永続化したり、出力されたオプションを監査したり、クライアントにシリアライズされる前にアプリケーション固有のテレメトリでレスポンスを充実させるために使用してください。

使用例

procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnRegistrationOptionsResponse(
  Sender: TObject; const aRequest: TsgcWebAuthn_RegistrationOptions_Request;
  const aResponse: TsgcWebAuthn_RegistrationOptions_Response);
begin
  SaveChallenge(aRequest.User.Name, aResponse.Challenge);
end;

イベントに戻る