TsgcWSAPIServer_WebAuthnEventi › OnWebAuthnAuthenticationOptionsResponse

OnWebAuthnAuthenticationOptionsResponse Evento

Viene attivato dopo che il server ha costruito la risposta PublicKeyCredentialRequestOptions per /authenticate/begin; consente all'applicazione di ispezionare o salvare la challenge generata.

Sintassi

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

Valore predefinito

Note

Complementare a OnWebAuthnAuthenticationOptionsRequest. Viene attivato dopo che il server ha costruito il payload completo di PublicKeyCredentialRequestOptions (challenge, RP id, verifica utente, allowCredentials con transport, timeout). Utilizzarlo per persistere la challenge in un archivio condiviso nelle distribuzioni cluster, per controllare le opzioni emesse o per esporre metriche prima che la risposta venga serializzata per il client.

Esempio

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

Torna agli Eventi