Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is this possible to login into the SharePoint site using the username and password from web service soap header?

Thanks SR

share|improve this question
    
Have a look at the first response in this question sharepoint.stackexchange.com/questions/13002/… –  Renzo Jan 2 '13 at 12:43

1 Answer 1

If your SharePoint site is using FBA, you can use authentication.asmx webservice to get the authentication cookie. If your site is using Windows, you can directly assign defaultcredentials of logged in user like :

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

share|improve this answer
    
Hi @Amit Kumawat thanks for your response. My site is using Windows Authentication. I have valid username and password in web service. So i need to pass that user to the sharepoint site like /* using (SPSite site = new SPSite("url", usertoken)) */ –  SRanj Jan 3 '13 at 4:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.