TsgcWSAPIServer_WebAuthn이벤트 › OnWebAuthnRegistrationSuccessful

OnWebAuthnRegistrationSuccessful Event

attestation이 수락된 /register/verify 끝에서 발생합니다. 애플리케이션이 사용자의 새 자격 증명 레코드를 유지해야 하는 곳입니다.

구문

property OnWebAuthnRegistrationSuccessful: TsgcWebAuthnOnRegistrationSuccessful;
// TsgcWebAuthnOnRegistrationSuccessful = procedure(Sender: TObject; const aRegistration: TsgcWebAuthn_Registration; const aCredentialRecord: TsgcWebAuthn_CredentialRecord; var Accept: Boolean) of object

기본값

설명

성공적인 등록 의식의 최종 후크입니다. aRegistration은 원래 사용자 정보와 검증된 attestation을 보유합니다. aCredentialRecord는 사용자별로 키를 지정하여 저장해야 하는 서버 측 자격 증명(credential id, 공개 키, sign count, transports, backup 플래그, AAGUID)을 포함합니다. 마지막 순간에 의식을 중단하려면(예: 스토어가 삽입을 거부한 경우) Accept를 false로 설정하십시오. 그러면 서버가 성공 응답 대신 클라이언트에 오류를 반환합니다.

예제

procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnRegistrationSuccessful(
  Sender: TObject; const aRegistration: TsgcWebAuthn_Registration;
  const aCredentialRecord: TsgcWebAuthn_CredentialRecord; var Accept: Boolean);
begin
  Accept := SaveCredential(aRegistration.User.Name, aCredentialRecord);
end;

이벤트로 돌아가기