TsgcWSAPIServer_WebAuthn이벤트 › OnWebAuthnAuthenticationOptionsResponse

OnWebAuthnAuthenticationOptionsResponse 이벤트

서버가 /authenticate/begin에 대한 PublicKeyCredentialRequestOptions 응답을 구축한 후 발생합니다. 애플리케이션이 생성된 challenge를 검사하거나 영속화할 수 있게 합니다.

구문

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

기본값

설명

OnWebAuthnAuthenticationOptionsRequest의 동반 이벤트입니다. 서버가 전체 PublicKeyCredentialRequestOptions 페이로드(challenge, RP id, user verification, transport가 포함된 allowCredentials, timeout)를 빌드한 후 발생합니다. 클러스터 배포에서 challenge를 공유 저장소에 영속화하거나, 방출된 옵션을 감사하거나, 응답이 클라이언트로 직렬화되기 전에 메트릭을 노출하는 데 사용하십시오.

예제

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

이벤트로 돌아가기