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

On our public web site we have forms users can use to insert data into lists on our SharePoint BPOS site. We use the web services (authentication/lists) to do this and the piece of code to authenticate is:

public void authentication()
   Auth.Authentication authenticationObj = new Auth.Authentication();
   authenticationObj.Url = authServiceUrl;
   authenticationObj.CookieContainer = new System.Net.CookieContainer();
   authenticationObj.AllowAutoRedirect = true;
   authenticationObj.Credentials = new System.Net.NetworkCredential(_authUserName, _authPassword);

   Auth.LoginResult result = authenticationObj.Login(_authUserName, _authPassword);

We just got migrated to Office 365 and now the result comes back with PassWordDoesNotMatch but I know the password match because I can log on to the site with it.

I did a google and it seems like this doing this kind of thing has changed from BPOS to Office 365, am I correct?

Thanks in advance.

share|improve this question
up vote 0 down vote accepted

Yes it has changed from BPOS to 365 - 365 uses claims based authentication.

share|improve this answer
thanks I got it working with wictor's solution, not sure how to get web from a different site collection than the top one though, if I use any other URL than then I can't authenticate – John May 21 '12 at 11:44

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.