<?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: Login problem with REST API in Enterprise environment /Portal in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123446#M1628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am specifying the domain like your example. It was working in the past, but suddenly it stopped working. Nothing changed in configuration/settings. I compared config/settings with another server/portal (where I can successfully generate token) and everything are identical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 18:38:06 GMT</pubDate>
    <dc:creator>NirmalOjha</dc:creator>
    <dc:date>2020-02-19T18:38:06Z</dc:date>
    <item>
      <title>Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123438#M1620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some time now, I ha&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ve been unabl&lt;/SPAN&gt;e to login using REST API nor I am able to generate token. It used to be working but now it is not working. No configuration has been changed. I used the following URL pattern for generating the token but I get response as invalid username or password:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://webadaptor.domain.com/arcgis/sharing/rest/generateToken" title="https://webadaptor.domain.com/arcgis/sharing/rest/generateToken" rel="nofollow noopener noreferrer" target="_blank"&gt;https://webadaptor.domain.com/arcgis/sharing/rest/generateToken&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"error": {  "code": 400,  "message": "Unable to generate token.",  "details": [   "Invalid username or password.",   "Invalid username or password."  ] }}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The only user account that works with the above URL and REST API is the default admin account, any other account results in &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Invalid username or password.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I can login to the portal fine with the browser &lt;A class="" href="https://webadaptor.domain.com/arcgis/sharing/rest/generateToken" title="https://webadaptor.domain.com/arcgis/sharing/rest/generateToken" rel="nofollow noopener noreferrer" target="_blank"&gt;https://webadaptor.domain.com/arcgis&lt;/A&gt; and it allows me to login using enterprise login.

Thanks.

Nirmal

&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123438#M1620</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2021-12-12T16:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123439#M1621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What version of the software are you using?&lt;/LI&gt;&lt;LI&gt;Is there Federation between ArcGIS Server and Portal?&lt;/LI&gt;&lt;LI&gt;For enterprise users, are you using SAML integration, LDAP, or IWA?&lt;/LI&gt;&lt;LI&gt;What are the current authentication settings for your Portal and ArcGIS Server web adaptors?&amp;nbsp; (anonymous vs Windows)&lt;/LI&gt;&lt;LI&gt;Are you able to log into ArcGIS Server Admin using non-PSA accounts?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123439#M1621</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2020-02-19T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123440#M1622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are the answers:&lt;/P&gt;&lt;P&gt;1) I am running ArcGIS 10.7.1 (Portal, Server, Datastore, Webadaptor)&lt;/P&gt;&lt;P&gt;2) The ArcGIS Server is federated to use Portal.&lt;/P&gt;&lt;P&gt;3) SAML Integration&lt;/P&gt;&lt;P&gt;4) &lt;A class="link-titled" href="https://webadaptor.domain.com/arcgis/portaladmin/security/config" title="https://webadaptor.domain.com/arcgis/portaladmin/security/config"&gt;https://webadaptor.domain.com/arcgis/portaladmin/security/config&lt;/A&gt;&amp;nbsp; shows Windows&lt;/P&gt;&lt;P&gt;5) I am able to login to the ArcGIS Server Admin (&lt;A class="link-titled" href="https://webadaptor.domain.com/server/manager/" title="https://webadaptor.domain.com/server/manager/"&gt;https://webadaptor.domain.com/server/manager/&lt;/A&gt;&amp;nbsp;) using my enterprise account which is non-PSA account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nirmal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123440#M1622</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2020-02-19T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123441#M1623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; For question #4, I'm talking specifically about the configuration within IIS.&amp;nbsp; How are both of your web adaptors (Portal and Server) configured in terms of anonymous and Windows authentication?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123441#M1623</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2020-02-19T16:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123442#M1624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for explaining what you asked and I did not understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked on the IIS and Authentication. I see that for Portal only Anonymous Authentication is enabled, and all others are disabled. For Server, both Anonymous and Windows Authentication is enabled. For Windows Authentication, the response type is "HTTP 401 Challenge".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nirmal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123442#M1624</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2020-02-19T16:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123443#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me the name of your web adaptors?&amp;nbsp; Is the web adaptor for Portal named 'arcgis'?&amp;nbsp; If so, what is the name of your ArcGIS Server web adaptor?&amp;nbsp; I'm just wanting to understand the URL scheme you've mentioned earlier in terms of what is working versus not.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123443#M1625</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2020-02-19T17:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123444#M1626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Portal:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://webadaptor.domain.com/arcgis/" title="https://webadaptor.domain.com/arcgis/"&gt;https://webadaptor.domain.com/arcgis/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For GIS Server:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://webadaptor.domain.com/arcgis/" title="https://webadaptor.domain.com/arcgis/"&gt;https://webadaptor.domain.com/server/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123444#M1626</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2020-02-19T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123445#M1627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When attempting to generate a token using an enterprise account (which I believe you said does not work currently), are you specifying the domain in conjunction with the username?&amp;nbsp; For example, &lt;A href="mailto:username@domain.net"&gt;username@domain.net&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123445#M1627</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2020-02-19T17:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123446#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am specifying the domain like your example. It was working in the past, but suddenly it stopped working. Nothing changed in configuration/settings. I compared config/settings with another server/portal (where I can successfully generate token) and everything are identical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123446#M1628</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2020-02-19T18:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123447#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if there is a service account in play somewhere that may be locked.&amp;nbsp; You said you're using SAML but then you also said the answer to question #4 originally was "shows Windows".&amp;nbsp; Typically, it would show Windows in the Portal Admin's security/config section if you were using IWA.&amp;nbsp; If your Portal is in fact configured to use Windows as its user and/or groups store, then you would likely be using a service account to authenticate with active directory in order to perform user and group lookups.&amp;nbsp; That account may be locked.&amp;nbsp; Other than that, I recommend checking with Esri support on anything further.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123447#M1629</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2020-02-19T18:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123448#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. Your comment helped me identify the issue. It was related to the service account but indirectly. I have to use the portaladmin/security/config and updated the identity store. The password of service account was changed. Everything else were working and I had used the config tool in the portal directory to update the info as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nirmal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 20:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/123448#M1630</guid>
      <dc:creator>NirmalOjha</dc:creator>
      <dc:date>2020-02-19T20:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Login problem with REST API in Enterprise environment /Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/1255360#M13158</link>
      <description>&lt;P&gt;Sorry for reviving a kind of old thread, but I'm having a similar issue, only my service account password has not changed, and I am only having trouble generating tokens from virtual and off-network machines, which is important for some third party software. Any ideas of other possible causes?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/login-problem-with-rest-api-in-enterprise/m-p/1255360#M13158</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2023-02-06T15:51:24Z</dc:date>
    </item>
  </channel>
</rss>

