TsgcWSAPIServer_WebAuthnProperties › EndpointsOptions

EndpointsOptions 속성

WebAuthn 등록, 인증, 번들된 JavaScript 라이브러리 및 테스트 페이지를 위해 구성 요소가 제공하는 URL 경로입니다.

구문

property EndpointsOptions: TsgcWSWebAuthnEndpoints_Options read FEndpointsOptions write SetEndpointsOptions;

기본값

RegistrationOptions: /sgcWebAuthn/Registration/Options; RegistrationVerify: /sgcWebAuthn/Registration/Verify; AuthenticationOptions: /sgcWebAuthn/Authentication/Options; AuthenticationVerify: /sgcWebAuthn/Authentication/Verify; WebAuthn (JS library): 활성화됨; Test: 비활성화됨.

설명

브라우저 JavaScript 계층의 WebAuthn 트래픽을 처리하기 위해 구성 요소가 노출하는 HTTP 엔드포인트를 구성합니다. 각 항목에는 Enabled 플래그와 사용자 정의 가능한 Endpoint URL 경로가 있습니다. RegistrationOptions는 인증자가 새 자격 증명을 생성할 수 있도록 챌린지와 Relying Party 데이터를 반환합니다. RegistrationVerify는 attestation을 받아 공개 키를 저장합니다. AuthenticationOptions는 로그인을 위한 챌린지를 반환합니다. AuthenticationVerify는 저장된 공개 키를 사용하여 assertion을 검증합니다. WebAuthn은 번들된 JavaScript 헬퍼를 제공합니다. 자체 WebAuthn 클라이언트 라이브러리를 배포하려면 비활성화하십시오. Test는 HTML 테스트 페이지를 제공하며 프로덕션에서는 비활성화 상태로 유지해야 합니다.

예제

oWebAuthn.EndpointsOptions.RegistrationOptions.Endpoint := '/api/webauthn/register/options';
oWebAuthn.EndpointsOptions.RegistrationVerify.Endpoint := '/api/webauthn/register/verify';
oWebAuthn.EndpointsOptions.AuthenticationOptions.Endpoint := '/api/webauthn/login/options';
oWebAuthn.EndpointsOptions.AuthenticationVerify.Endpoint := '/api/webauthn/login/verify';
oWebAuthn.EndpointsOptions.WebAuthn.Enabled := True;
oWebAuthn.EndpointsOptions.Test.Enabled := False;

속성으로 돌아가기