Faisal
Faisal

Reputation: 4264

How can I authenticate SharePoint user credentials

I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?

Upvotes: 0

Views: 4580

Answers (2)

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();

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

sourceListService.Credentials = networkCredentials;

Upvotes: 5

Younes
Younes

Reputation: 4823

Maybe you will find this a handy reference.

Upvotes: 0

Related Questions