I need to pass WINDOWS AUTHENTICATION details of logged in user to the pdf converter to make it work. I've tried this
PdfConverter.AuthenticationOptions.Username = CredentialCache.DefaultNetworkCredentials.UserName;
PdfConverter.AuthenticationOptions.Password = CredentialCache.DefaultNetworkCredentials.Password;
But this doesn't help. Converter is working locally, but returning 404 errors in the server where windows authentication is enabled.
How can I get credentials with the code?
Try this:- (You can use WindowsIdentity)
I don't think we can retrieve password since passwords are not stored in Windows.