I want to upload a document to SharePoint online document library(using code) from CRM online plugin. Earlier I was having on premise CRM 2011 and SharePoint 2010. There authentication worked fine as we were using Active Directory. Now in order to support CRM online and SP online I need to know the best possible way so that SP online can authenticate the CRM 2011 online plug in's call.
Approaches I don't want to consider:
1. I don't want to use BCS of SharePoint online as mentioned @ http://blogs.msdn.com/b/girishr/archive/2011/02/14/msdn-webcast-integrating-sharepoint-2010-and-crm-2011-online.aspx
2. I can pass user name and password to get the token from SharePoint online as mentioned @ http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx from the plug in(Have not tried though)
Is there a way other than these two. Thanks.