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), iohSChannel (Windows only), iohAndroidTLS or iohAppleTLS. On Android, iohAndroidTLS uses the platform native TLS (javax.net.ssl.SSLEngine) and on iOS and macOS, iohAppleTLS uses Apple native TLS, so no OpenSSL libraries need to be deployed; native platform TLS requires the Enterprise edition.
oOAuth2.HTTPClientOptions.TLSOptions.Version := tls1_2;
oOAuth2.HTTPClientOptions.TLSOptions.VerifyCertificate := True;
oOAuth2.HTTPClientOptions.LogOptions.FileName := 'oauth2_client.log';
oOAuth2.HTTPClientOptions.LogOptions.Enabled := True;