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;
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:
https://es.infragistics.com/community/forums/f/ignite-ui-for-javascript/80086/igupload-addfinishinguploadeventhandler---user-is-null-in-event
which you can try out.
Let me know if any of the suggestions there solves your issue.
Best Regards,
Maya Kirova
Infragistics, Inc.
www.infragistics.com/support