Skip to main content

TdxOAuth2AuthorizationAgent.ClientID Property

Specifies the OAuth 2.0 unique client identifier.

Declaration

property ClientID: string read; write;

Property Value

Type
string

Remarks

Use this property to set the client application identifier that the authorization agent uses to connect to a supported OAuth 2.0 server. To obtain a valid OAuth 2.0 client identifier, you need to register your application with the online service corresponding to the required account type. The actual registration procedure depends on the online data access API and the corresponding authorization agent component (a TdxOAuth2AuthorizationAgent class descendant instance) you are going to use in your application:

Online Data Access API Authorization Agent Class How to Register a Native Application
Google API TdxGoogleAPIOAuth2AuthorizationAgent https://developers.google.com/identity/protocols/oauth2/native-app
Microsoft Graph® API TdxMicrosoftGraphAPIOAuth2AuthorizationAgent https://docs.microsoft.com/en-us/graph/auth-register-app-v2

The ClientID property’s default value is an empty string. TdxOAuth2AuthorizationAgent class descendants have their own default ClientID property values.

See Also