locked
Social Care Sample Application - Authentication RRS feed

  • Question

  • I cannot authenticate with CRM Online to create social activities using the Social Care Sample Application

    I have successfully connected to Twitter to retrieve posts

    But the app fails when authentication with CRM Online to create social activities:

    AuthenticationResult result = authenticationContext.AcquireToken(_authorizationCode, _clientID, _redirectUrl);

    (Parameter values are:
     _authorizationCode = "Microsoft.CRM"
     _clientID = <same as client id in azure app definition>
     _redirectUrl = "http://localhost:33223/"

    I have setup an azure "Web Application and/or Web/API" app as follows:
    - Sample application in Azure portal for CRM Online tenant
    - Set APP ID URI to "https://<mytenant>.onmicrosoft.com/socialapp"
    - Set REPLY URL to "http://localhost:33223/"
    - Copied CLIENT ID parameter into web.config
    - Set delegated permissions to Dynamics CRM
    - Set delegated permissions to Windows Azure Active Directory

    The error details are:
    An unhandled exception of type 'Microsoft.WindowsAzure.ActiveDirectory.Authentication.AALException' occurred in Microsoft.WindowsAzure.ActiveDirectory.Authentication.dll

    Additional information: AADSTS90014: The request body must contain the following parameter: 'client_secret or client_assertion'.

    Saturday, July 26, 2014 12:59 PM