2
如何通過網絡服務從共享點獲取身份驗證提供程序?如何通過Web服務從Sharepoint獲取身份驗證提供程序?
我登錄以從python應用程序共享點。我需要從共享點站點找到所選身份驗證提供程序。如何獲得?
如何通過網絡服務從共享點獲取身份驗證提供程序?如何通過Web服務從Sharepoint獲取身份驗證提供程序?
我登錄以從python應用程序共享點。我需要從共享點站點找到所選身份驗證提供程序。如何獲得?
您無法檢索提供程序實例,然後執行諸如Membership.ValidateUser(username, password)
之類的操作。
你需要創建一個參考the Authentication Web service,進行登錄操作(下面的C#示例 - 你必須做在Python類似的東西):
string siteUrl = "http://example.com/sites/hr";
AuthenticationService.Authentication client = new AuthenticationService.Authentication();
client.AllowAutoRedirect = true;
client.CookieContainer = new CookieContainer();
client.Url = siteUrl + "_vti_bin/Authentication.asmx";
AuthenticationService.LoginResult loginResult = client.Login(username, password);
if (loginResult.ErrorCode == AuthenticationService.LoginErrorCode.NoError)
{
string cookie = client.CookieContainer.GetCookieHeader(new Uri(siteUrl));
}
,並使用獲得的cookie。
閱讀Reading a SharePoint list with PHP後 - 它可能給你關於從非微軟環境來訪問SharePoint的一些想法。