Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM2016, Oauth, Azure

$
0
0

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

https://blogs.msdn.microsoft.com/crminthefield/2015/07/22/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:      

//Codes

        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!


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>