TsgcHTTP_OAuth2_ClientProperties › HTTPClientOptions

HTTPClientOptions Property

TLS and logging configuration of the internal HTTP client used to POST to the token, revocation and introspection endpoints.

Syntax

property HTTPClientOptions: TsgcHTTPClient_Options read FHTTPClientOptions write SetHTTPClientOptions;

Default Value

Default TLS options; logging disabled.

Remarks

Every call issued by the component to the authorization server — token request, refresh, revoke and introspect — is performed through a shared internal HTTP client. HTTPClientOptions configures that client:

Example


oOAuth2.HTTPClientOptions.TLSOptions.Version := tls1_2;
oOAuth2.HTTPClientOptions.TLSOptions.VerifyCertificate := True;
oOAuth2.HTTPClientOptions.LogOptions.FileName := 'oauth2_client.log';
oOAuth2.HTTPClientOptions.LogOptions.Enabled := True;

Back to Properties