TsgcWSAPIServer_WebAuthnGebeurtenissen › OnWebAuthnRegistrationOptionsResponse

OnWebAuthnRegistrationOptionsResponse Gebeurtenis

Wordt geactiveerd nadat de server de PublicKeyCredentialCreationOptions-respons voor /register/begin heeft gebouwd; laat de toepassing de gegenereerde uitdaging inspecteren of opslaan.

Syntaxis

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

Standaardwaarde

Opmerkingen

Aanvulling op OnWebAuthnRegistrationOptionsRequest. Wordt geactiveerd nadat de server de volledige PublicKeyCredentialCreationOptions-payload heeft opgebouwd (uitdaging, RP, gebruikers-id, excludeCredentials, pubKeyCredParams, attestation, authenticatorselectie). Gebruik het om de uitdaging op te slaan in een gedeelde opslag bij geclusterde implementaties, om de uitgezonden opties te controleren of om de respons te verrijken met toepassingsspecifieke telemetrie voordat deze naar de client wordt geserialiseerd.

Voorbeeld

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

Terug naar Events