AnsweredAssumed Answered

Is it possible to use the ArcGIS Online Python API if my organziation is using a federated login?

Question asked by c_sharp_dotnet on Jul 14, 2017
Latest reply on Jul 11, 2018 by Ahjung.Kim_stantec

My company has a federated single sign on with ArcGIS Online, and I'm unable to authenticate with AGOL and the Python API.

gis = GIS(agolUrl, userName, password)

This line will throw an exception, "Unable to generate token.  Invalid username or password."  The values for "userName" and "password" are my normal AGOL logins - these will work when logging into the AGOL homepage in my browser.  I'm able to log in using my personal account (this one), and query content with the GIS() module.  How do I authenticate via the Python API using my account that is a federated login from my company?