I am writing a WCF service hosted on Azure as (PaaS). The service, in turn, should talk to Sharepoint 2013 Online / Office 365.
I searched for using the SharePoint object model to talk to him, but I continue to get the following error: "The remote server responded with an error: (403) Forbidden" When we log in to access the SharePoint instance through a browser, you can usually go to https: //login.microsoftonline.com/login.srf so you can log in using Live Id. The problem is that we are using a federated account, not a Live Id, and so we redirect the adfs site again to log in. I looked at the sample code at http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx , which uses claims-based authentication, but this always fails with the message “Authentication Error” when trying to restore the Samlen Token.
If I understand this correctly. One way to do this is to get the Saml token, pass it an SPO, which in turn will return two cookies, which I need to include in requests made with the client object model. The problem is that I cannot find suitable examples of how to authenticate using a federated account in C #.
Can someone point me in the right direction, how can I continue authorizing the WCF service to talk to SharePoint.
Sorry if this is the wrong forum. I'm not quite sure if this is an Azure problem or just SharePoint, as I'm pretty new to both technologies.
authentication c # sharepoint sharepoint-2013
Werner du Plessis Nov 21 '12 at 9:22 2012-11-21 09:22
source share