MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

Web services + forms authentication

  Asked By: Evelyn Little         Date: Mar 07, 2010      Category: MOSS      Views: 392
 

I have forms authenticated Sharepoint site of Moss 2007.
I wanted to access the list through web services
It gives me access denied error when i tried to pass the network credentials

How can i send credentials for form based sharepoint site

Tagged:        

 

2 Answers Found

 
Answer #1       Answered By: Corina Duran          Answered On: Mar 07, 2010       

u have to impersonate the authorized credentials thorgh ur code

 
Answer #2       Answered By: Irving Hurley          Answered On: Mar 07, 2010       

That was my question ,i tried using the following code ,but it did not work
Can u provide me with code snippet

The 2 ways i tried were this
1.By using default one
ContactManagementWebServices.Lists lists= new
ContentManagement.ContactManagementWebServices.Lists();
lists.UseDefaultCredentials = true;
lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

2.
NetworkCredential networkCredential = null;
UserCredential userCredential = UserCredential.GetInstance();
networkCredential = userCredential.NetworkCred;
In which i provided the user id ,pwd and domain

I think we cannot use Net credentials as it not windows based authentication  but
is form based

 
Didn't find what you were looking for? Find more on Web services + forms authentication Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].