Hi there i am new MS dynamics crm using Azure Active Directory Authentication Library (ADAL) for Java, am providing all info but still getting error like
[Correlation ID: e1d768ca-0fc4-4818-8aff-1e46c1acccb6] Execution of class com.microsoft.aad.adal4j.AcquireTokenCallable failed.
com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'.\r\nTrace ID: f2847e21-a64c-4faa-9811-015951d93700\r\nCorrelation ID: e1d768ca-0fc4-4818-8aff-1e46c1acccb6\r\nTimestamp: 2018-11-07 12:56:02Z","error":"invalid_client"}
My code id like this
//Azure Application Client ID
finalString CLIENT_ID = "00000000-0000-0000-0000-000000000000";
//CRM URL
final String RESOURCE = "everlifeai.onmicrosoft.com/";
//O365 credentials for authentication w/o login prompt
final String USERNAME = "xxxxxxxxxx@everlifeai.onmicrosoft.com";
final String PASSWORD = "xxxxxxxxxxxx";
//Azure Directory OAUTH 2.0 AUTHORIZATION ENDPOINT
final String AUTHORITY = "login.microsoftonline.com/common";
and the error is clearly mentioned that This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. how can i made active subscriptions for my tenant.
*This post is locked for comments