TsgcWSAPIServer_WebAuthn › Methods › IsWebAuthnRequest
Returns True when the incoming URL path matches one of the configured WebAuthn endpoints.
function IsWebAuthnRequest(const aHeaders: TStringList): Boolean;
| Name | Type | Description |
|---|---|---|
aHeaders | const TStringList | Raw HTTP request headers (including the request line) from which the URL path is extracted. |
True when the request URL targets one of the paths configured in EndpointsOptions (registration, authentication, verify, webauthn.js, ...); False otherwise. (Boolean)
Useful when the host server must decide whether to delegate the request to the WebAuthn component or keep its own handling. DoProcessHTTP calls this method internally before starting the registration or authentication flow.
if sgcWSAPIServer_WebAuthn1.IsWebAuthnRequest(aRequestInfo.RawHeaders) then
sgcWSAPIServer_WebAuthn1.DoProcessHTTP(aConnection, aRequestInfo.RawHeaders);