TsgcHTTP_OAuth2_ClientProperties › OAuth2Options

OAuth2Options Property

Client identity and grant-type selection driving the OAuth 2.0 flow.

Syntax

property OAuth2Options: TsgcHTTPOAuth2_Options read FOAuth2Options write SetOAuth2Options;

Default Value

GrantType=auth2Code; all string fields empty.

Remarks

Publishes the parameters required by the authorization server to identify the client and pick the grant type:

Example


oOAuth2.OAuth2Options.GrantType := auth2CodePKCE;
oOAuth2.OAuth2Options.ClientId := '180803918357-eqjtn20gqfhcs6gjkebbrrenh022mqqc.apps.googleusercontent.com';
oOAuth2.OAuth2Options.ClientSecret := '_by0iYYrvVHxC2Z8TbtNEYQN';

Back to Properties