TsgcWSAPIServer_WebAuthnGebeurtenissen › OnWebAuthnAuthenticationOptionsResponse

OnWebAuthnAuthenticationOptionsResponse Gebeurtenis

Wordt geactiveerd nadat de server de PublicKeyCredentialRequestOptions-respons heeft opgebouwd voor /authenticate/begin; stelt de applicatie in staat de gegenereerde uitdaging te inspecteren of op te slaan.

Syntaxis

property OnWebAuthnAuthenticationOptionsResponse: TsgcWebAuthnOnAuthenticationOptionsResponse;
// TsgcWebAuthnOnAuthenticationOptionsResponse = procedure(Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request; const aResponse: TsgcWebAuthn_AuthenticationOptions_Response) of object

Standaardwaarde

Opmerkingen

Aanvulling op OnWebAuthnAuthenticationOptionsRequest. Wordt gegenereerd nadat de server de volledige payload PublicKeyCredentialRequestOptions heeft opgesteld (uitdaging, RP-id, gebruikersverificatie, allowCredentials met transporten, time-out). Gebruik het om de uitdaging op te slaan in een gedeelde opslag in geclusterde implementaties, de uitgezonden opties te controleren of statistieken beschikbaar te stellen voordat het antwoord naar de client wordt geserialiseerd.

Voorbeeld

procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnAuthenticationOptionsResponse(
  Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request;
  const aResponse: TsgcWebAuthn_AuthenticationOptions_Response);
begin
  SaveChallenge(aRequest.User.Name, aResponse.Challenge);
end;

Terug naar Events