TsgcWSAPIServer_WebAuthnZdarzenia › OnWebAuthnRegistrationOptionsResponse

OnWebAuthnRegistrationOptionsResponse Zdarzenie

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

Składnia

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

Wartość domyślna

Uwagi

Uzupełnienie zdarzenia OnWebAuthnRegistrationOptionsRequest. Wywoływane po zbudowaniu przez serwer pełnego ładunku PublicKeyCredentialCreationOptions (wyzwanie, RP, identyfikator użytkownika, excludeCredentials, pubKeyCredParams, attestation, wybór urządzenia uwierzytelniającego). Należy go używać do utrwalania wyzwania we współdzielonym magazynie we wdrożeniach klastrowych, audytowania emitowanych opcji lub wzbogacania odpowiedzi o telemetrię specyficzną dla aplikacji przed jej serializacją do klienta.

Przykład

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

Powrót do Zdarzeń