TvxAuthType
TvxAuthType = (fatNone, fatBasic, fatBearer, fatMicrosoftOAuth, fatGoogleOAuth, fatNetsuiteOAuth, fatCustomOAuth, fatWindows)
Example
procedure ConfigureBearer(Client: TvxHTTP; const Token: String);
begin
Client.AuthType := fatBearer;
Client.Password := Token;
end;
Usage
TvxAuthType selects no authentication, Basic, bearer, provider OAuth, custom OAuth or Windows SSPI for Velox HTTP and transport clients.
Members
| Value | Ordinal | Meaning |
|---|---|---|
fatNone | 0 | Disable the local authentication callbacks and clear request credentials. |
fatBasic | 1 | Use HTTP Basic authentication with Username and Password. |
fatBearer | 2 | Use Velox's bearer handler; current TvxHTTP supplies Password as the bearer token. |
fatMicrosoftOAuth | 3 | Acquire/use a Microsoft OAuth token through the Velox OAuth authenticator. |
fatGoogleOAuth | 4 | Acquire/use a Google OAuth token. |
fatNetsuiteOAuth | 5 | Acquire/use a NetSuite OAuth token, including its provider-specific client-assertion path. |
fatCustomOAuth | 6 | Use caller-supplied OAuth endpoints and settings. |
fatWindows | 7 | Use Windows SSPI/NTLM authentication and optional Domain. |
Behavior and boundaries
fatBasicsends a reversible base64 credential representation and is safe only over authenticated TLS.fatBearerdoes not obtain a token; the current client passesPasswordto the bearer authentication object. Protect that property as a secret.- Provider/custom OAuth members select bearer authentication but first call
TvxOAuth2Authenticator; required Tenant, ClientId, Secret, Scope, endpoints and GrantType vary. fatWindowsselectsTIdSSPINTLMAuthentication. The Velox legacyfatNTLMis normalized tofatWindowsin some product copy paths but is not script-visible.- When
InProcessAuthis false, Velox pre-creates authentication so credentials can go with the first request; when true, challenge handling controls the exchange. - Authentication selection does not configure TLS. Set and verify transport security separately.
Additional Technical Info
TvxAuthType selects the authentication handler used by TvxHTTP and related transports. The meaning of credential properties depends on the selected member.
The product's native enum contains a ninth trailing member, fatNTLM, labelled old. The PascalScript importer deliberately/accidentally stops at fatWindows; scripts cannot name fatNTLM. Shared members keep the same ordinals because the omission is trailing.
Related Code Library entries
- TvxHTTP.AuthType - direct selection property.
- TvxHTTP.GrantType - OAuth flow selection.
- TvxHTTP.ClearAuthentication - discard current authentication state.
- TvxHTTP.SSLClientType - separate TLS protocol setting.
External references
- RFC 7617 Basic authentication - Basic authentication and security considerations.
- RFC 6750 bearer tokens - bearer-token usage and protection.
- RFC 6749 OAuth 2.0 - OAuth authorization framework.
- Embarcadero enumerated types - Delphi ordinal semantics.
- Free Pascal ordinal types - compatible enumeration concepts.