<?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: Connecting to GIS() using Built-In login in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1364548#M9457</link>
    <description>&lt;P&gt;What do you need the token for? Operations on the ArcGIS API for python use the GIS instance as authentication for secure resources.&lt;BR /&gt;&lt;BR /&gt;If you're trying to use the token for the REST API, the API for python can do pretty much all the operations from the REST API (GIS API for python is a wrapper of the REST API).&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 18:02:23 GMT</pubDate>
    <dc:creator>Raul</dc:creator>
    <dc:date>2023-12-27T18:02:23Z</dc:date>
    <item>
      <title>Connecting to GIS() using Built-In login</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1362341#M9430</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I had been using Pro 2.7, but recently upgraded to 3.2. The code I had been using with 2.7 worked fine, but doesn't seem to work with 3.2 I'm connecting to GIS() using Built-In login, as described here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connect to ArcGIS Online using a built-in account &amp;gt; Connecting through ArcGIS Pro&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To connect I have been using:&lt;BR /&gt;gis = GIS('pro'), or in some cases: gis = GIS('home')&lt;/P&gt;&lt;P&gt;and to get the token, I've been using:&lt;BR /&gt;auth_token = gis._con.token&lt;/P&gt;&lt;P&gt;which I found referenced in this community post, and elsewhere:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/get-the-token-using-arcgis-python-api/td-p/876344" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/get-the-token-using-arcgis-python-api/td-p/876344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But these methods don't work anymore, and do not return a token:&lt;/P&gt;&lt;P&gt;gis = GIS('pro')&lt;BR /&gt;print("Logged in as: " + gis.properties.user.username)&lt;BR /&gt;print('token='+str(gis._con.token))&lt;/P&gt;&lt;P&gt;Returns:&lt;BR /&gt;Logged in as: myUsername&lt;BR /&gt;token=None&lt;/P&gt;&lt;P&gt;gis = GIS('home')&lt;BR /&gt;print("Logged in as: " + gis.properties.user.username)&lt;BR /&gt;print('token='+str(gis._con.token))&lt;/P&gt;&lt;P&gt;Returns:&lt;BR /&gt;Logged in as: myUsername&lt;BR /&gt;token=None&lt;/P&gt;&lt;P&gt;Can anyone offer any insight?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 23:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1362341#M9430</guid>
      <dc:creator>DCWORK_GIS</dc:creator>
      <dc:date>2023-12-18T23:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to GIS() using Built-In login</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1364548#M9457</link>
      <description>&lt;P&gt;What do you need the token for? Operations on the ArcGIS API for python use the GIS instance as authentication for secure resources.&lt;BR /&gt;&lt;BR /&gt;If you're trying to use the token for the REST API, the API for python can do pretty much all the operations from the REST API (GIS API for python is a wrapper of the REST API).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 18:02:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1364548#M9457</guid>
      <dc:creator>Raul</dc:creator>
      <dc:date>2023-12-27T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to GIS() using Built-In login</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1364860#M9465</link>
      <description>&lt;P&gt;I have a script to create a Replica that checks for valid token and if it's expired, gets a new one. My code worked using the authentication and token access method I described, up until a couple of weeks ago, after we upgraded from 2.7 to 3.2.&lt;/P&gt;&lt;P&gt;My org doesn't use named users for login, so username/password isn't an option.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 20:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connecting-to-gis-using-built-in-login/m-p/1364860#M9465</guid>
      <dc:creator>DCWORK_GIS</dc:creator>
      <dc:date>2023-12-28T20:35:07Z</dc:date>
    </item>
  </channel>
</rss>

