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
Passing logged in Credentials to file upload handler

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;

No Data
  • 29097
    Offline posted

    Hello John, 

    Thank you for posting in our forum. 

    Since the igUpload uses its own  HTTP module, which is not part of the MVC pipeline, you would not have direct access to the current session or user information, however there are possible workarounds described in the following forum thread:

    which you can try out.

     Let me know if any of the suggestions there solves your issue. 


    Best Regards,

    Maya Kirova

    Infragistics, Inc.



No Data