Require some help in passing the authentication of a logged-in user to a web services (which is a wsdl file added as web reference to the application) from an ASP.NET application/ SharePoint 2010 portal. When the application calls the web service,
the default network credentials need to be passed to the web service to get authenticated to use the data repository. This web service is used for searching a data repository depending on the logged in user's credentials and search query.
We have made necessary changes required in the applications like.
Necessary changes in web.config (like authentication mode to Windows, impersonation is made true). Install client certificates to the trusted location.
Enable IE 8.0 to use Integrated Windows authentication (Internet Explorer -->Tools-->Internet Options -->Advanced--> Security --> Enable Integrated Windows Authentication.
Even the web services have methods to get the windows network credentials. While trying the following code, to pass current credentials, default credentials is empty.
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials (Here it is a null value)
Application is using Windows Authentication | NTLM.
The following code works, if the authenticat
View Complete Post