I have a windows application that needs to run in system context. And it needs to authenticate to a proxy for internet access.
Limitations are : 1) Cannot ask user for credentials as it is not a user-facing application and basic authentication is not preferred option as well 2) using computer identity for authentication may not be an option as it depends on individual enterprise configuration.
If I want to use Integrated Windows Authentication (for NTLM/ Kerberos) to leverage the context of already logged on user, is there a way the application running in system context can switch to user context? Or is there is any other cleaner way for an application running in system context to authenticate to proxy?