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;

返回事件