<?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: Error while logging into organization portal for ArcGIS using Python API in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1115475#M31540</link>
    <description>&lt;P&gt;I am also using okta and a python script.&lt;/P&gt;&lt;P&gt;It seems I am getting a similar error.&amp;nbsp; Looking at old overwrite scripts I can no longer connect to portal 10.8.1 with out getting an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;user = &lt;SPAN&gt;'######'  &lt;/SPAN&gt;&lt;SPAN&gt;#username@city.gov&lt;BR /&gt;&lt;/SPAN&gt;password = &lt;SPAN&gt;'#######'  &lt;/SPAN&gt;&lt;SPAN&gt;#okta password goes here&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;  gis = GIS(&lt;SPAN&gt;'https://webmaps.ourcity.gov/portal/'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;user&lt;SPAN&gt;, &lt;/SPAN&gt;password)&lt;BR /&gt;  un = gis.properties.user.username&lt;BR /&gt;  &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Logged in as: "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;un)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;error:&lt;BR /&gt;   &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"An error occurred : "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;error)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 23:44:03 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2021-11-09T23:44:03Z</dc:date>
    <item>
      <title>Error while logging into organization portal for ArcGIS using Python API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1111674#M31410</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While I am trying to logging into Portal for ArcGIS of my organization using following code in Python API&lt;/P&gt;&lt;P&gt;gis= GIS(url = '&lt;A href="https://xxx.domaincom/portal" target="_blank"&gt;https://xxx.domaincom/portal&lt;/A&gt;', username='xxx', password='xxx')&lt;/P&gt;&lt;P&gt;getting the below error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SOVANHALDER_0-1635348138996.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26300i53A92B08445F5606/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SOVANHALDER_0-1635348138996.png" alt="SOVANHALDER_0-1635348138996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to logging in using same credential in browser. This is SSO&amp;nbsp; and&amp;nbsp; OKTA authentication is enabled.&lt;/P&gt;&lt;P&gt;Can anyone help on the issues I am getting in Python api?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1111674#M31410</guid>
      <dc:creator>SOVANHALDER</dc:creator>
      <dc:date>2021-10-27T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while logging into organization portal for ArcGIS using Python API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1111680#M31411</link>
      <description>&lt;P&gt;That would be strange for it to behave differently like that. I would double-check that your username and password are exactly right.&lt;/P&gt;&lt;P&gt;Personally, I like to use an input to set the user/pass parameters rather than rely on hard-coded values. Try omitting the &lt;STRONG&gt;password&lt;/STRONG&gt; parameter. When you specify a user w/o a password, it will automatically prompt you to enter your password using the &lt;STRONG&gt;getpass&lt;/STRONG&gt; module, which hides the entered text like a standard password entry.&lt;/P&gt;&lt;PRE&gt;gis = GIS('portal-url', input('User: '))&lt;/PRE&gt;&lt;P&gt;If you're still getting the error, try omitting the user/password entirely to see if you can connect to the portal anonymously. This will at least confirm whether you are reaching the portal.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1111680#M31411</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-10-27T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error while logging into organization portal for ArcGIS using Python API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1115475#M31540</link>
      <description>&lt;P&gt;I am also using okta and a python script.&lt;/P&gt;&lt;P&gt;It seems I am getting a similar error.&amp;nbsp; Looking at old overwrite scripts I can no longer connect to portal 10.8.1 with out getting an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;user = &lt;SPAN&gt;'######'  &lt;/SPAN&gt;&lt;SPAN&gt;#username@city.gov&lt;BR /&gt;&lt;/SPAN&gt;password = &lt;SPAN&gt;'#######'  &lt;/SPAN&gt;&lt;SPAN&gt;#okta password goes here&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;  gis = GIS(&lt;SPAN&gt;'https://webmaps.ourcity.gov/portal/'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;user&lt;SPAN&gt;, &lt;/SPAN&gt;password)&lt;BR /&gt;  un = gis.properties.user.username&lt;BR /&gt;  &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Logged in as: "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;un)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;error:&lt;BR /&gt;   &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"An error occurred : "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;error)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 23:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1115475#M31540</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2021-11-09T23:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error while logging into organization portal for ArcGIS using Python API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1115719#M31545</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/23906"&gt;@SOVANHALDER&lt;/a&gt;&amp;nbsp;I found a work around.&amp;nbsp; Not sure if this is available to you.&amp;nbsp; I had admin set me up with a built in account.&amp;nbsp; I am no longer using my okta account to sign into our enterprise portal for python stuff.&lt;/P&gt;&lt;P&gt;This seemed to be the trick as my old scripts are back and running again.&amp;nbsp; We have recently done some security upgrades so I wonder if that is why the otka login stopped working.&lt;/P&gt;&lt;P&gt;There might be a better way to generate a token, fairly new to python myself.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-while-logging-into-organization-portal-for/m-p/1115719#M31545</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2021-11-10T17:04:44Z</dc:date>
    </item>
  </channel>
</rss>

