AnsweredAssumed Answered

Python API can't connect to portal with windows authentication

Question asked by simo Champion on Sep 3, 2017
Latest reply on Nov 11, 2019 by simo

Hi folks,


I am new to this API, I tried it with ArcGIS Online it works fine. But when I try to connect to our local ArcGIS portal, it doesn't work. Can anybody kindly point me to the right direction? I highly suspect that the problem is the API can't pick up my windows credentials which is required to login the portal.


More information:


Our portal is using IWA authentication, and this document for IWA points to not using a username or password:


It looks like there are some additional requirements for using IWA and the ArcGIS Python API:

"If your portal is configured to pick up your Windows credeintials using NTLM or Kerberos, you can omit passing in the username and password. The ArcGIS Python API is able to figure out when the GIS is using Windows authentication and picks the login credentials from the currently running process providing a seamless and secure login experience. Windows authentication only works on the Windows OS and requires pywin32 and kerberos-sspi python packages."


Please see the screen dump for details: (click to zoom in)