dotConnect for Dynamics 365 Documentation
Devart.Data.Dynamics Namespace / DynamicsConnectionStringBuilder Class / ClientSecret Property

In This Topic
ClientSecret Property
In This Topic
Gets or sets the second one of the pair of OAuth 2.0 credentials, that you can obtain when you register an OAuth application in Azure AD tenant. This parameter is used for RefreshToken authentication.
Syntax
'Declaration
 
Public Property ClientSecret As String
 

Property Value

The second one of the pair of OAuth 2.0 credentials, that you can obtain when you register an OAuth application in Azure AD tenant.
Remarks
This parameter is optional. If you omit Client ID and Client Secret in the connection string, dotConnect for Dynamics CRM will implicitly use its own credentials for an OAuth app, registered by Devart. If you prefer to register your own app, then you need to specify these parameters.
See Also