My company has a federated single sign on with ArcGIS Online, and I'm unable to authenticate with AGOL and the Python API.
gis <SPAN class="operator token">=</SPAN> GIS<SPAN class="punctuation token">(</SPAN>agolUrl<SPAN class="punctuation token">,</SPAN> userName<SPAN class="punctuation token">,</SPAN> password<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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?