TsgcWSAPIServer_WebAuthn › 方法 › IsWebAuthnRequest
当传入的 URL 路径匹配已配置的 WebAuthn 端点之一时返回 True。
function IsWebAuthnRequest(const aHeaders: TStringList): Boolean;
| 名称 | 类型 | 描述 |
|---|---|---|
aHeaders | const TStringList | 原始 HTTP 请求标头(包括请求行),从中提取 URL 路径。 |
当请求 URL 指向 EndpointsOptions 中配置的路径之一(注册、验证、verify、webauthn.js 等)时为 True;否则为 False。(Boolean)
当主机服务器必须决定是否将请求委托给 WebAuthn 组件或保留其自己的处理时很有用。DoProcessHTTP 在启动注册或身份验证流程之前在内部调用此方法。
if sgcWSAPIServer_WebAuthn1.IsWebAuthnRequest(aRequestInfo.RawHeaders) then
sgcWSAPIServer_WebAuthn1.DoProcessHTTP(aConnection, aRequestInfo.RawHeaders);