TsgcWSAPIServer_WebAuthn속성 › WebAuthnOptions

WebAuthnOptions 속성

Relying Party 구성: RPName, RPID, Origins, 지원되는 Algorithms, Attestation 형식, User Verification, Timeout 및 AuthenticatorSelection.

구문

property WebAuthnOptions: TsgcWSWebAuthnServer_Options read FWebAuthnOptions write SetWebAuthnOptions;

기본값

RelyingParty (RPID)가 비어 있음 — 서버 DNS 이름으로 설정해야 합니다. 알고리즘: ES256 + RS256. 모든 Attestation 형식 활성화됨. AllowCrossOrigins: false. AllowCredentials: false. ExcludeCredentials: false.

설명

자격 증명 등록(navigator.credentials.create())과 인증(navigator.credentials.get()) 모두에 사용되는 주요 WebAuthn(FIDO2) Relying Party 설정입니다. RelyingParty는 필수이며 서버 DNS 이름(예: www.test.com)과 일치해야 합니다. 추가 도메인이나 임베디드 iframe에서 요청이 올 때 추가 OriginsTopOrigins를 구성할 수 있으며, AllowCrossOrigins는 교차 출처 iframe 흐름을 활성화합니다. Algorithms set은 어떤 COSE 서명 알고리즘이 수락되는지 제어합니다(ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512, RS1, EdDSA). 기본적으로 ES256과 RS256만 활성화됩니다. Attestation 형식(None, Packed, TPM, AndroidKey, Apple, FidoU2F)은 개별적으로 활성화하거나 비활성화할 수 있습니다. AllowCredentials / ExcludeCredentials / Limit은 인증 및 등록 중에 클라이언트에 어떤 자격 증명 ID가 전송되는지 제어합니다.

예제

oWebAuthn.WebAuthnOptions.RelyingParty := 'www.test.com';
oWebAuthn.WebAuthnOptions.Origins.Add('https://login.test.com');
oWebAuthn.WebAuthnOptions.Algorithms.ES256 := True;
oWebAuthn.WebAuthnOptions.Algorithms.RS256 := True;
oWebAuthn.WebAuthnOptions.Attestation.NoneAttestation := True;
oWebAuthn.WebAuthnOptions.Attestation.PackedAttestation := True;
oWebAuthn.WebAuthnOptions.Credentials.ExcludeCredentials := True;
oWebAuthn.WebAuthnOptions.Credentials.Limit := 10;

속성으로 돌아가기