Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to pull data from the list.asmx web service from a console application. I am using clams based authentication, and whenever only integrated Windows Authentiation is checked everything works fine. Whenever I also check Enable Forms Based Authentication I start getting an Acccess is denied error when I try to connect to the service. I can login successfully using FBA so I don't think the problem is caused by the FBA configuration. Does anyone have any ideas to what might be causing this?

share|improve this question
    
Could be to do with the the selection page you get for mixed mode authentication web-apps. If SP doesn't know which method to use I guess you would get an access denied, not sure though (hence comment not answer) –  Charles Lee Aug 4 '10 at 20:54
    
I thought about that, but I'm not sure how you can tell it which one to use. –  Eric Maurer Aug 6 '10 at 13:52
add comment

1 Answer

Your client (the program consuming the service) needs to pass a NetworkCredential object. With integrated auth, this just happens. For FBA, you need to create a new object and put in the credentials. For claims auth, you need to leverage the Identity Framework.

share|improve this answer
    
Sounds pretty logical to me +1 –  Charles Lee Aug 5 '10 at 6:02
    
Does anyone have an example of using the Identity Framwework to authenticate to the SharePoint services? –  Eric Maurer Aug 6 '10 at 13:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.