I have an Enterprise environment that is configured for both ArcGIS logins, and Integrated Windows Authentication (IWA).
Now, I have written a console application written in .NET, that uses the ArcGIS REST API. It will be run by a user (i.e. not as a scheduled task), and I would like to log in automatically, using the currently logged in user's identity.
My question is: How can I get an access token? The documentation on IWA says: This method manages user login through Microsoft Windows Active Directory and the user typically manually enters their username + password. However, if I login manually in a browser, I only need to click on the button with my organization's name, without entering any credentials.This makes sense, because by definition, a user running the application is already logged in in Windows. Is there a way to replicate this behavior?
The examples I found all use either OAuth, or have hard-coded credentials.