How to add item to SharePoint list from window application using claim based authentication ? it gives 401 forbidden error. user is authenticated from ADFS server.
|
how about following msdn? try using
http://msdn.microsoft.com/en-us/library/hh147177(v=office.14).aspx if it doesnt work and still returns a 403 than it has to be an issue with ADFS not setup properly! check and refer to this: EDIT after some digging about i did find this: http://stackoverflow.com/questions/11295953/claim-auth-from-adfs they have a similar issue to you and required authentication from adfs! the issue is its complex and so he made a quick bolg on his findings: http://jwillmer.de/blog/2013/01/04/sharepoint-online-with-adfs-authentication/ his solution : |
|||||||
|
Please make sure that your Build Configuration for your windows application is set to
or
in Project Properties --> Build --> General in Visual studio For setting permissions on ClientContext:
or
Also, have you seen this blogpost? It has some helper dll that seems to be helpful |
|||||||||||
|