Monday, June 4, 2012

How to Initialized Client Context in Office 365 / Claim Based Authenticated Sites


Generally we initialize the client context straight away by creating new object of class ClientContext and by providing the url of the site as well as needed credentials, but for sites using claims based authentication (let it be Office 365 site or On Premise site) this logic won’t, so what’s the solution?

User must be logged in to the Federated Authentication Provider before initializing the client context object and hence there should be some provision in the client application to let users log in.
Microsoft has released a sample console application which demonstrates about remote authentication in SharePoint Online / Claim based SharePoint sites using managed client object model.

Hope this helps someone.

No comments:

Post a Comment