Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Passing logged in Credentials to file upload handler
posted

We are using igUpload IG version 15.120151.2112

We have a need to pass the current users credentials to the igUpload_FinishingUpload handler.  The reason for this is that inside of this handler we are uploading the file to a thrid party document management system which requires the the credentials of the logged in user. Previously we had been using:

ClientCredentials clientCredential = new ClientCredentials();
clientCredential.Windows.ClientCredential = new System.Net.NetworkCredential();

However, we can no longer use the default application pool account and instead have to use the logged in user. Is there an easy way to pass this credential object to the handler?

ClientCredentials credentials = new ClientCredentials();
credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;