Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxOAuth2AuthorizationAgent.ClientSecret Property

Specifies the OAuth 2.0 client secret.

#Declaration

Delphi
property ClientSecret: string read; write;

#Property Value

Type
string

#Remarks

Use this property to specify the client secret as a part of an HTTP request to an OAuth 2.0 authorization server. To obtain both the identifier and secret for your application, register it with the online service corresponding to the authorization agent component type. For instance, if you use the TdxMicrosoftGraphAPIOAuth2AuthorizationAgent component in your application, register it with the Microsoft Azure AD 2.0 endpoint.

Important

It is not safe to store the client secret in source code. Instead, you can handle the OnGetClientSecret event to request the client secret from a safe storage on demand.

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

See Also