Jan 112011
 

Happy new year to all my readers. Today’s post will be really short I had a few questions about how we can authenticate from Windows Azure on CRM 2011 Online version, (as we know CRM online  uses LiveId to authenticate users). Well it’s relatively easy, key point is to use DeviceIdManager class which comes with CRM 2011 SDK and change “PersistToFile” to false in a contructor. This option is avilable in latest SDK and it’s been added for “Azure” since on we don’t want to store deviceid in a file. I published ready to (re)use project VS 2010 which you can download . The project contains worker role, funcionality is not super reach I just call WhoAmIRequest but it will give you example how you can authenticate. All you need to do is change those lines

OrganizationUrl = "https://yoururl/Organization.svc"; 
LiveidUsername = "mysecret@live.co.uk";
LiveidPassword = "supersecret";
       

Happy testing .

Download sample project

Share and Enjoy!
 Posted by at 3:23 am

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>