<?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: Generating Token via REST API in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390520#M38824</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745900"&gt;@Thomas_Puthusserry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response, I attempted with the Portal PSA and it remained the same, I attempted with the Server PSA as well and got Invalid Username or Password on the token generation, I assume due to it being a Server account not a Portal account. I was able to edit on both PSA and account tested, very unusual stuff!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 16:59:28 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2024-03-04T16:59:28Z</dc:date>
    <item>
      <title>Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390348#M38815</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I've been attempting to get to know the REST API a little more, and I have found some odd issues with generating a token.&lt;/P&gt;&lt;P&gt;I seem to only be able to use the PSA account siteadmin to generate a token. I attempted to use portaladmin and another built in account, but I continually am met with "Invalid username or password", when I am quite sure that the case-sensitivity has been tested, along with the password correct.&lt;/P&gt;&lt;P&gt;Is it only possible to generate a token via ArcGIS Server accounts? I attempted to create a user through the Server security settings and it still did not work.&lt;/P&gt;&lt;P&gt;Enterprise 11.2, ArcGIS Server federated with ArcGIS Portal.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390348#M38815</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-03-04T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390376#M38817</link>
      <description>&lt;P&gt;It would help if you provided a bit more information.&amp;nbsp; It sounds like you are talking about an ArcGIS Enterprise deployment with portal and federated ArcGIS Servers (as opposed to stand-alone ArcGIS Server), correct?&amp;nbsp; When an ArcGIS Server is federated with a portal, the authentication goes through the portal except for the built-in PSA account.&amp;nbsp; The portal provides a token to use with the federated ArcGIS Server, you don't login directly to AGS with portal credentials.&amp;nbsp; What REST calls specifically are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 14:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390376#M38817</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-03-04T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390390#M38818</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is correct, Enterprise 11.2 with portal and federated servers. The REST call we are attempting to use would be the addFeatures POST request, a token would be required to use these services.&lt;/P&gt;&lt;P&gt;We have an application that we would like to move certain POST requests from pointing to a third-party vendor to instead point into ArcGIS Server to create the necessary points, lines, and polygons. I would like to not use the siteadmin credentials when performing these operations as that seems like a non-security conscious decision.&lt;/P&gt;&lt;P&gt;Hope that clears things up!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390390#M38818</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-03-04T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390491#M38821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;there are a couple of steps involved here, if you are going to access a resource via REST api. One of the option is to create a user account with edit role (will need creator license in the portal), add that user to a group (you may have to create a group with shared update enabled so that all users in that group can edit feature layers shared with them) and then&amp;nbsp; share the feature layer which you want to edit as an item to that group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then use that user credentials to generate token like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://yourportaldomain.com/portal/sharing/rest/generateToken" target="_blank"&gt;https://yourportaldomain.com/portal/sharing/rest/generateToken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since the gis server is federated, the authentication to the server will be handled by the portal&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390491#M38821</guid>
      <dc:creator>Thomas_Puthusserry</dc:creator>
      <dc:date>2024-03-04T16:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390507#M38822</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745900"&gt;@Thomas_Puthusserry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response! It was very straightforward so I appreciate that, I attempted to create the token and use it in the same way I had before using a GET request, and it now states Invalid Token. I attempted this with IP Address and IP Address of this request's origin.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1709570815730.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96761i5613AFDA852775FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1709570815730.png" alt="CodyPatterson_0-1709570815730.png" /&gt;&lt;/span&gt;&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="CodyPatterson_1-1709570850613.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96762i950C5A0BDF0CF6EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_1-1709570850613.png" alt="CodyPatterson_1-1709570850613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390507#M38822</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-03-04T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390512#M38823</link>
      <description>&lt;P&gt;If you use a token generated by the PSA does that work to edit on the layer? If so you may want to login in a different browser with the user credentials created and used to generate the token and check whether you can edit the feature layer in question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390512#M38823</guid>
      <dc:creator>Thomas_Puthusserry</dc:creator>
      <dc:date>2024-03-04T16:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390520#M38824</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745900"&gt;@Thomas_Puthusserry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response, I attempted with the Portal PSA and it remained the same, I attempted with the Server PSA as well and got Invalid Username or Password on the token generation, I assume due to it being a Server account not a Portal account. I was able to edit on both PSA and account tested, very unusual stuff!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390520#M38824</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-03-04T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390699#M38830</link>
      <description>&lt;P&gt;Looks like I've found the issue, apparently I needed to use the referer URL in order to accomplish this, so setup the token through the portal/rest directory, and then use a portal login with the referer being the actual ArcGIS Server.&lt;/P&gt;&lt;P&gt;Thanks for the help &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745900"&gt;@Thomas_Puthusserry&lt;/a&gt;, definitely pointed me in the right direction!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 20:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1390699#M38830</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-03-04T20:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Token via REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1579852#M41538</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745900"&gt;@Thomas_Puthusserry&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have a question regarding the PrivatePortalURL configuration in an HA environment. I'm a bit confused about which format to use:&lt;/P&gt;&lt;P&gt;&lt;A href="https://Internal-lb.domain:7443/arcgis" target="_blank"&gt;https://Internal-lb.domain:7443/arcgis&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://Internal-lb.domain:7443/portal" target="_blank"&gt;https://Internal-lb.domain:7443/portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The confusion arises because I noticed a redirect occurring when the hosting server tries to access the portal to generate a token for the publishing process. This results in an "Invalid token" error being logged in the portal.&lt;/P&gt;&lt;P&gt;Also is there any property I should configure in the load balancer that might relate to this redirect?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 08:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/generating-token-via-rest-api/m-p/1579852#M41538</guid>
      <dc:creator>MarGIS</dc:creator>
      <dc:date>2025-01-29T08:19:19Z</dc:date>
    </item>
  </channel>
</rss>

