Skip to main content

TdxOAuth2AuthorizationAgent.ClientSecret Property

Specifies the OAuth 2.0 client secret.

Declaration

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