TsgcWSAPIServer_WebAuthn메서드 › IsWebAuthnRequest

IsWebAuthnRequest Method

수신 URL 경로가 구성된 WebAuthn 엔드포인트 중 하나와 일치할 때 True를 반환합니다.

구문

function IsWebAuthnRequest(const aHeaders: TStringList): Boolean;

Parameters

NameType설명
aHeadersconst TStringListURL 경로가 추출되는 원시 HTTP 요청 헤더(요청 줄 포함)입니다.

반환 값

요청 URL이 EndpointsOptions(등록, 인증, 확인, webauthn.js 등)에 구성된 경로 중 하나를 대상으로 할 때 True이고, 그렇지 않으면 False입니다. (Boolean)

설명

호스트 서버가 요청을 WebAuthn 구성 요소에 위임할지 아니면 자체 처리를 유지할지 결정해야 할 때 유용합니다. DoProcessHTTP는 registration 또는 authentication 흐름을 시작하기 전에 내부적으로 이 메서드를 호출합니다.

예제

if sgcWSAPIServer_WebAuthn1.IsWebAuthnRequest(aRequestInfo.RawHeaders) then
  sgcWSAPIServer_WebAuthn1.DoProcessHTTP(aConnection, aRequestInfo.RawHeaders);

메서드로 돌아가기