Web service authentication in SharePoint Office 365 compared to SharePoint BPOS?
-
09-12-2019 - |
Question
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.
Solution
Yes it has changed from BPOS to 365 - 365 uses claims based authentication.
http://code.msdn.microsoft.com/Remote-Authentication-in-b7b6f43c
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange