You need the client secret to use OAuth 2.0 client secret grant authentication to access Microsoft Dynamics 365 for Sales.
To get the client secret, you need to register your Microsoft Dynamics 365 for Sales web application and create a new application user for the registered application.
Perform the following tasks to create a new application user for the registered application.
Go to the Azure registered applications page in Azure Active Directory.