How do you authenticate with this library?

Aug 20, 2010 at 1:48 PM

Hi, I would like to use SPServices in a Windows Sidebar gadget, but I don't understand how to provide credentials to the SharePoint site. How can I specify the username/password? My SP site uses Windows authentication.

Aug 20, 2010 at 1:54 PM

You do not need to specify authentication with the library, current user's credentials will be used; al-la Windows authentication.

While SPServices was never intended for the use you're proposing, I would be curious to see how you get on with this if you wouldn't mind posting back when you get to a point worth sharing.

Aug 20, 2010 at 1:59 PM

How do I specify different credentials?

I will definitely post my results.

Aug 20, 2010 at 2:04 PM

I don't believe you can specify different credentials, unless you add your own headers somehow; users will connect as themselves.

Aug 20, 2010 at 4:56 PM
Mike's right. When you are using Windows authentication you can't pass new credentials to the Web Services. I think you will need to wrap your Web Services calls in your own code which changes the current user's credentials first. M.