TsgcHTTP_OAuth2_Client › Properties › HTTPClientOptions
TLS and logging configuration of the internal HTTP client used to POST to the token, revocation and introspection endpoints.
property HTTPClientOptions: TsgcHTTPClient_Options read FHTTPClientOptions write SetHTTPClientOptions;
Default TLS options; logging disabled.
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:
iohOpenSSL (default) or iohSChannel (Windows only).
oOAuth2.HTTPClientOptions.TLSOptions.Version := tls1_2;
oOAuth2.HTTPClientOptions.TLSOptions.VerifyCertificate := True;
oOAuth2.HTTPClientOptions.LogOptions.FileName := 'oauth2_client.log';
oOAuth2.HTTPClientOptions.LogOptions.Enabled := True;