Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Web services + forms authentication

  Asked By: Evelyn    Date: Mar 07    Category: MOSS    Views: 1269

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

Share: 

 

2 Answers Found

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

u have to impersonate the authorized credentials thorgh ur code

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

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.




Tagged: