<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: arcgis.gis login failure in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030892#M5608</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;If you normally use an Enterprise login the login details may have to be formatted like this DOMAIN\username for example edu\tim.callahan&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 05:36:56 GMT</pubDate>
    <dc:creator>DavinWalker2</dc:creator>
    <dc:date>2021-02-26T05:36:56Z</dc:date>
    <item>
      <title>arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030761#M5604</link>
      <description>&lt;P&gt;I'm a beginner learning GIS, coding, APIs, etc so I hope this isn't a dumb question.&lt;/P&gt;&lt;P&gt;I'm trying to access my schools AGOL organization from Jupyter notebooks using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trouble72_0-1614289043160.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7008i6A2D8C782271A42C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trouble72_0-1614289043160.png" alt="trouble72_0-1614289043160.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But keep getting error 400, can not generate token/bad username or password.&amp;nbsp; I have tried all the variations on this I can think of (capitalization of my username as it appears in AGO, adding /portal to the organization url, etc) but nothing has worked.&amp;nbsp; Is it obvious to anyone here what I'm doing wrong?&lt;/P&gt;&lt;P&gt;I have no trouble logging in to AGO directly or through ArcGIS Pro with these same credentials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 21:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030761#M5604</guid>
      <dc:creator>Tim_Callahan</dc:creator>
      <dc:date>2021-02-25T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030777#M5605</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue may be that you are appending /portal to the URL. The following should work:&lt;/P&gt;&lt;P&gt;gis=GIS("&lt;A href="https://orgName.maps.arcgis.com" target="_blank" rel="noopener"&gt;https://orgName.maps.arcgis.com&lt;/A&gt;", "username", "password")&lt;/P&gt;&lt;P&gt;gis=GIS("&lt;A href="https://arcgis.com" target="_blank" rel="noopener"&gt;https://arcgis.com&lt;/A&gt;", "username", "password")&lt;/P&gt;&lt;P&gt;In the second option, you can enter in just arcgis.com and your username will automatically place you in the corresponding organization.&lt;/P&gt;&lt;P&gt;Also, it is worth noting that while signing into ArcGIS Online through a web browser or ArcGIS Pro is not case sensitive, making a GIS object through the ArcGIS API for Python&amp;nbsp;&lt;STRONG&gt;is&amp;nbsp;&lt;/STRONG&gt;case sensitive. Make sure that you are using the username and password exactly as listed in your profile in your ArcGIS Online organization.&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030777#M5605</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-25T22:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030800#M5606</link>
      <description>&lt;P&gt;Thank you for the reply Calvin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you suggested I've tried dropping the /portal and quadruple checking that my username is capitalized as in the profile, but I get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I may have identified the problem though.&amp;nbsp; When I normally log in to ArcGIS Online, I do so through the enterprise login option associated with my university.&amp;nbsp; Trying to log in via the ArcGIS login option in the sign-in window using my school credentials doesn't work.&amp;nbsp; So I guess that every time I sign in to ArcGIS Online I'm actually going through the school's system and they are passing different credentials than what I'm entering to satisfy the school login.&lt;/P&gt;&lt;P&gt;The process goes: open orgName.maps.arcgis.com -&amp;gt; choose the enterprise login on the sign-in screen -&amp;gt; enter my school credentials.&lt;/P&gt;&lt;P&gt;Sorry - there's probably better vocabulary to describe what I'm seeing.&lt;/P&gt;&lt;P&gt;-Tim&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030800#M5606</guid>
      <dc:creator>Tim_Callahan</dc:creator>
      <dc:date>2021-02-25T22:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030892#M5608</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;If you normally use an Enterprise login the login details may have to be formatted like this DOMAIN\username for example edu\tim.callahan&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 05:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1030892#M5608</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-02-26T05:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1031012#M5611</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;It sounds like you are using Enterprise Logins that have been configured with your ArcGIS Online organization, must likely OAuth2.0. That being the case, there is a slightly different workflow that is required to initialize a GIS object in the Python API. I would recommend you take a look at this section of the documentation for a sample workflow of how to accomplish this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0" target="_blank"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 16:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1031012#M5611</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-26T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.gis login failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1031231#M5614</link>
      <description>&lt;P&gt;Calvin,&lt;/P&gt;&lt;P&gt;Thanks for your help! The Oauth 2 client ID login method worked.&amp;nbsp; I would have been a very long time figuring that out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 00:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-gis-login-failure/m-p/1031231#M5614</guid>
      <dc:creator>Tim_Callahan</dc:creator>
      <dc:date>2021-02-27T00:51:13Z</dc:date>
    </item>
  </channel>
</rss>

