简体   繁体   English

如何验证SharePoint用户凭据

[英]How can I authenticate SharePoint user credentials

I need to access a sharepoint application from my desktop application (written in C#). 我需要从桌面应用程序(用C#编写)访问共享点应用程序。 How should I pass credentials and verify authentication? 我应该如何通过凭据和验证身份验证?

1.Add WebService reference(Name : SourceLists) to the project (Web service URL https://……./sites/_vti_bin/lists.asmx) 2. SourceLists.Lists sourceListService = new SourceLists.Lists(); 1.将WebService引用(名称:SourceLists)添加到项目(Web服务URL https://……./sites/_vti_bin/lists.asmx)。2. SourceLists.Lists sourceListService = new SourceLists.Lists();

System.Net.NetworkCredential networkCredentials = new System.Net.NetworkCredential(“userid”, “pwd”); System.Net.NetworkCredential networkCredentials =新的System.Net.NetworkCredential(“ userid”,“ pwd”);

sourceListService.Credentials = networkCredentials; sourceListService.Credentials = networkCredentials;

也许你会发现一个方便的参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何认证用户? - How can I authenticate a user? 如何使用登录用户在Bot Framework中对SharePoint进行身份验证? - How do I authenticate to SharePoint in Bot Framework using logged in user? 如何在 dotnetcore 中对不属于域用户的用户进行身份验证? - How can I authenticate a user that does not belong to Domain Users in dotnetcore? 如何在Sharepoint服务器端对象模型中对用户进行身份验证? - How to authenticate a user in sharepoint server side object model? 如何通过静默提供用户凭据来打开共享点页面 - how to open a sharepoint page by providing the user credentials silently 如何从Sharepoint页面提示用户输入保存位置? - How can I prompt the user for a save location from a Sharepoint page? 如何验证域? - How can I authenticate to a domain? 验证Google Apps用户帐户凭据 - Authenticate google apps user account credentials 如何验证用户身份以及如何根据登录人获取用户的名字和第二名? - How can I authenticate user and how can I get first name and second name of user according to the login person? 如何通过提示用户输入管理员凭据,将文件复制为Vista中的“标准用户”(即“管理选择应用程序”)? - How can I copy a file as a “Standard User” in Vista (ie “An Administrative Choice Application”) by prompting user for admin credentials?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM