SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had to create an application which connects to Sharepoint. The interested Sharepoint Application is set to work ONLY with claim based Authentication, so I cannot use the classic:

 NetworkCredential Cred = new NetworkCredential("administrator", "Password", "domain");

How can i connect by Claim Based?

I know I must contact STS, get a Token, contact SP STS, get another token and then contact Sharepoint...

Is there any tutorial or hint to do this in the right way?

Thank you very much!!!

share|improve this question

Robert Bogue has written a tool and sample app I have used successfully against a claims environment. Basically he extends the ClientContext class. In my case though, I had to be on a domain-joined machine for the code to work. Download it here.

share|improve this answer

Your Answer


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.