TsgcHTTP_OAuth2_Client › Properties › OAuth2Options
Client identity and grant-type selection driving the OAuth 2.0 flow.
property OAuth2Options: TsgcHTTPOAuth2_Options read FOAuth2Options write SetOAuth2Options;
GrantType=auth2Code; all string fields empty.
Publishes the parameters required by the authorization server to identify the client and pick the grant type:
auth2Code, auth2ClientCredentials, auth2ResourceOwnerPassword).auth2ResourceOwnerPassword; also used when the token endpoint requires HTTP Basic authentication.auth2Code – Authorization Code flow for trusted server-side apps.auth2CodePKCE – Authorization Code with PKCE for native / SPA clients.auth2ClientCredentials – machine-to-machine flow, no user interaction.auth2ResourceOwnerPassword – direct username/password exchange (legacy).auth2DeviceCode – Device Authorization Grant (RFC 8628) for browser-less devices.
oOAuth2.OAuth2Options.GrantType := auth2CodePKCE;
oOAuth2.OAuth2Options.ClientId := '180803918357-eqjtn20gqfhcs6gjkebbrrenh022mqqc.apps.googleusercontent.com';
oOAuth2.OAuth2Options.ClientSecret := '_by0iYYrvVHxC2Z8TbtNEYQN';