How to call webservice using same credentials as Sharepoint?
Posted
by Saab
on Stack Overflow
See other posts from Stack Overflow
or by Saab
Published on 2009-08-17T16:13:19Z
Indexed on
2010/03/18
9:21 UTC
Read the original article
Hit count: 356
Is it possible to do a webservice call from within an Excel sheet that has been downloaded from a sharepoint server, using the same credentials as the ones that are used for accessing the Sharepoint server?
We're currently developing an Excel solution, which does webservice request from within the Excel sheet. This works fine, but the user has to log in at least twice : one for downloading/opening the Excel sheet from Sharepoint, and one to be able to execute the webservice using the right credentials.
The Sharepoint server and the client machine are not in the same Active Directory domain. So "System.Security.Principal.WindowsIdentity.GetCurrent()" is not an option, since this will return a user that doesn't exist on the server.
© Stack Overflow or respective owner