CRM2016, Oauth, Azure RRS feed

  • Question

  • Hi guys,

    I am a new developer of MS crm, I want to develop a mobile app which can connect to the crm 2016 online.

    But I met lots of problems when trying the sample here:

    Dynamics CRM Developers: Build Your Own Mobile Apps for Windows, iOS, and Android Part 5


    I even can not get the token.

      Here are some values I set:      


            private string OAuthUrl = "https://login.windows.net/common/oauth2/authorize"; 
            private string ServerUri = "https://magnetism2016.api.crm6.dynamics.com/api/data/v8.0"; 

            // Register the application to get ClientId. 
            private string ClientId = "bfa9fae5-789d-479e-b57d-eb72007244d0";
    #if __ANDROID__ || __IOS__ 
            private string RedirectUri = "http://crmxform.local"; 

    When running to here:

    result = await authContext.AcquireTokenAsync(ServerUri, ClientId, new Uri(RedirectUri), parameters); 

    I got nothing. I tried many times.

    If possible please tell me why, and which parameter may be not correct? I also want to find a sample that can run on crm2016 online. Would you please show me a link if you know that? 

    1. Thank you soooooo much!

    Monday, April 4, 2016 8:57 PM