Is there a way for Portal to ignore Web-tier authentication?

05-16-2019 09:59 AM
New Contributor II

I'm trying to login to Portal using the ArcGIS API for Python, but under a different user than my windows authentication user (python with OAuth 2.0 or the original Admin user). Unfortunately every time I attempt to log in as a different user, the Portal recognizes my windows authentication username and password and logs me in under that user instead. Has anyone else ran into this issue and found a solution? Below is an example of my code and the responses:

print("\n\nIntegrated Windows Authentication using NTLM or Kerberos")  
gis = GIS("")
print("Logged in as: " +

# Integrated Windows Authentication using NTLM or Kerberos
# Logged in as: me@activedirectory

print("\n\nPortal-tier Authentication with LDAP - enterprise user")
gisldap = GIS("", "activedirectory\\originalAdmin", "password")
print("Logged in as: " +

# Portal-tier Authentication with LDAP - enterprise user
# Logged in as: me@activedirectory

pythongis = GIS("", client_id='pythonappid')
print("Successfully logged in as: " +

# Successfully logged in as: me@activedirectory‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍



0 Replies