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 = "firstname.lastname@example.org"; LiveidPassword = "supersecret";
Happy testing .