TsgcWSAPIServer_WebAuthnMethods › DoProcessHTTP

DoProcessHTTP Method

Entry point of the HTTP pipeline; dispatches WebAuthn registration, authentication and authorization requests.

Syntax

public bool DoProcessHTTP(TsgcWSConnection aConnection, TStringList aHeaders);

Parameters

NameTypeDescription
aConnectionconst TsgcWSConnectionActive HTTP/WebSocket connection that received the request.
aHeadersconst TStringListRaw HTTP request headers (including the request line) forwarded from the host server.

Return Value

True when the request matched a WebAuthn endpoint and was fully processed; False when the request is not for WebAuthn and must be handled by the caller. (Boolean)

Remarks

Normally wired from the host server OnCommandGet/OnCommandPost (or equivalent HTTP API event). The method checks if the request targets a WebAuthn endpoint via IsWebAuthnRequest and, if so, builds the internal request/response objects and dispatches the registration or authentication flow.

Example

Back to Methods