nProblem:
n
nGenerally we initialize the client context straightnaway by creating new object of class ClientContext and by providing the url ofnthe site as well as needed credentials, but for sites using claims basednauthentication (let it be Office 365 site or On Premise site) this logic won’t,nso what’s the solution?
n
n
nGenerally we initialize the client context straightnaway by creating new object of class ClientContext and by providing the url ofnthe site as well as needed credentials, but for sites using claims basednauthentication (let it be Office 365 site or On Premise site) this logic won’t,nso what’s the solution?
n
n
n
nSolution:
n
n
n
nUser must be logged in to the Federated AuthenticationnProvider before initializing the client context object and hence there shouldnbe some provision in the client application to let users log in.
n
nMicrosoft has released a sample console applicationnwhich demonstrates about remote authentication in SharePoint Online / Claimnbased SharePoint sites using managed client object model.
n
n
n
n
nHope this helps someone.
n