TsgcWSAPIServer_WebAuthn › Zdarzenia › OnWebAuthnAuthenticationOptionsResponse
Wywoływane po tym, jak serwer zbudował odpowiedź PublicKeyCredentialRequestOptions dla /authenticate/begin; umożliwia aplikacji sprawdzenie lub utrwalenie wygenerowanego wyzwania.
property OnWebAuthnAuthenticationOptionsResponse: TsgcWebAuthnOnAuthenticationOptionsResponse;
// TsgcWebAuthnOnAuthenticationOptionsResponse = procedure(Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request; const aResponse: TsgcWebAuthn_AuthenticationOptions_Response) of object
—
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.
procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnAuthenticationOptionsResponse(
Sender: TObject; const aRequest: TsgcWebAuthn_AuthenticationOptions_Request;
const aResponse: TsgcWebAuthn_AuthenticationOptions_Response);
begin
SaveChallenge(aRequest.User.Name, aResponse.Challenge);
end;