在我们的公共网站上,用户可以使用表单将数据插入到我们的 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,我是对的吗?

提前致谢。

许可以下: CC-BY-SA归因
scroll top