SharePoint Office 365 中的 Web 服务身份验证与 SharePoint BPOS 相比?
-
09-12-2019 - |
题
在我们的公共网站上,用户可以使用表单将数据插入到我们的 SharePoint BPOS 网站上的列表中。我们使用 Web 服务(身份验证/列表)来执行此操作,用于身份验证的代码片段是:
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);
}
我们刚刚迁移到 Office 365,现在返回的结果是 PassWordDoesNotMatch
但我知道密码匹配,因为我可以用它登录该网站。
我谷歌了一下,似乎做这种事情已经从 BPOS 变成了 Office 365,我是对的吗?
提前致谢。
解决方案
是的,它已从 BPOS 更改为 365 - 365 使用基于声明的身份验证。
http://code.msdn.microsoft.com/Remote-Authentication-in-b7b6f43c