TsgcWSAPIServer_WebAuthnZdarzenia › OnWebAuthnAuthenticationOptionsResponse

OnWebAuthnAuthenticationOptionsResponse Zdarzenie

Wywoływane po tym, jak serwer zbudował odpowiedź PublicKeyCredentialRequestOptions dla /authenticate/begin; umożliwia aplikacji sprawdzenie lub utrwalenie wygenerowanego wyzwania.

Składnia

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

Wartość domyślna

Uwagi

Uzupełnienie zdarzenia OnWebAuthnAuthenticationOptionsRequest. Wywoływane po zbudowaniu przez serwer pełnego ładunku PublicKeyCredentialRequestOptions (wyzwanie, identyfikator RP, weryfikacja użytkownika, allowCredentials z transportami, limit czasu). Służy do utrwalania wyzwania we wspólnym magazynie w klastrowych wdrożeniach, do audytu emitowanych opcji lub do zbierania metryk przed serializacją odpowiedzi do klienta.

Przykład

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

Powrót do Zdarzeń