<?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 Authentication Client ID error in Esri Geoportal Server Questions</title>
    <link>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1546755#M929</link>
    <description>&lt;P&gt;hi Marc,&lt;/P&gt;&lt;P&gt;some thoughts on using ArcGIS authentication in Geoportal Server:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You'll see Geoportal Server requests to ArcGIS Portal sharing API to authorize with the OAuth2 endpoint. This results in a token that Geoportal Server can use.&lt;/LI&gt;&lt;LI&gt;Geoportal uses JWT tokens, so we generate this with a separate request to Geoportal Server's own oauth/token endpoint. This is where the client_id you see in the JavaScript files comes into play. In this process the user's ArcGIS Portal username is used together with a password of the form __rtkn__:&amp;lt;ArcGIS token&amp;gt;.&amp;nbsp; The Geoportal then uses the passed in token (that was obtained in step 1) for subsequent authentication needs for the current user session.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It looks like you commented out the client-id="geoportal-client" oauth:client element. Can you test reactivating that?&lt;/P&gt;&lt;P&gt;Marten&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 21:53:17 GMT</pubDate>
    <dc:creator>Marten</dc:creator>
    <dc:date>2024-10-08T21:53:17Z</dc:date>
    <item>
      <title>ArcGIS Authentication Client ID error</title>
      <link>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1546030#M928</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3084"&gt;@MartenHogeweg&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/449733"&gt;@Marten&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am trying to integrate our fresh Geoportal deployment with our 10.9.1 ArcGIS Portal for authentication.&lt;/P&gt;&lt;P&gt;I have deployed catalog to one server and harvester to another server. I have also followed along with the documentation for configuring ArcGIS authentication.&lt;/P&gt;&lt;P&gt;Everything works up until the point geoportal server attempts to get a token from portal. Then I get a 401 Unauthorized error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_0-1728272271779.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116584iDC53900413729ABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_0-1728272271779.png" alt="Marc_Graham_0-1728272271779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_1-1728272297324.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116585iC53D48140839A0DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_1-1728272297324.png" alt="Marc_Graham_1-1728272297324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Checking Chrome devtools I see that the client ID/appid that geoportal is passing to Portal is not the same as what I configured in authentication-arcgis.xml:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_6-1728272684227.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116590i449AF20CB5F1C902/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_6-1728272684227.png" alt="Marc_Graham_6-1728272684227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From Portal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_7-1728272978768.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116591i3E27B527AF06C1CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_7-1728272978768.png" alt="Marc_Graham_7-1728272978768.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is hardcoded to "geoportal-client":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_2-1728272357234.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116586iB4316EBCEDABD709/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_2-1728272357234.png" alt="Marc_Graham_2-1728272357234.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did a quick search for this string in files in notepad++ and found it referenced in two files that are undocumented in the github installation instructions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_3-1728272486547.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116587i2C7C89B5E9857341/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_3-1728272486547.png" alt="Marc_Graham_3-1728272486547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AppClient.js:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_4-1728272524836.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116588i79C3A5184B125D89/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_4-1728272524836.png" alt="Marc_Graham_4-1728272524836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;app-oauth.xml:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_Graham_5-1728272576442.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116589iDD2F3ED3B8378AF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marc_Graham_5-1728272576442.png" alt="Marc_Graham_5-1728272576442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm if the clientid needs to be updated in these files for authentication to succeed? Or if there are any other settings that need to be changed?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 03:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1546030#M928</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2024-10-07T03:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Authentication Client ID error</title>
      <link>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1546755#M929</link>
      <description>&lt;P&gt;hi Marc,&lt;/P&gt;&lt;P&gt;some thoughts on using ArcGIS authentication in Geoportal Server:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You'll see Geoportal Server requests to ArcGIS Portal sharing API to authorize with the OAuth2 endpoint. This results in a token that Geoportal Server can use.&lt;/LI&gt;&lt;LI&gt;Geoportal uses JWT tokens, so we generate this with a separate request to Geoportal Server's own oauth/token endpoint. This is where the client_id you see in the JavaScript files comes into play. In this process the user's ArcGIS Portal username is used together with a password of the form __rtkn__:&amp;lt;ArcGIS token&amp;gt;.&amp;nbsp; The Geoportal then uses the passed in token (that was obtained in step 1) for subsequent authentication needs for the current user session.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It looks like you commented out the client-id="geoportal-client" oauth:client element. Can you test reactivating that?&lt;/P&gt;&lt;P&gt;Marten&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 21:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1546755#M929</guid>
      <dc:creator>Marten</dc:creator>
      <dc:date>2024-10-08T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Authentication Client ID error</title>
      <link>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1600332#M936</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/273241"&gt;@Marc_Graham&lt;/a&gt;&amp;nbsp;were you able to solve the authentication issue with&amp;nbsp;&lt;SPAN&gt;the client-id="geoportal-client" commented out?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I was having the same error message when signing in however the suggestion from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/449733"&gt;@Marten&lt;/a&gt;&amp;nbsp;did not work for me.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 09:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-geoportal-server-questions/arcgis-authentication-client-id-error/m-p/1600332#M936</guid>
      <dc:creator>Igor_Ruhangara</dc:creator>
      <dc:date>2025-03-28T09:45:38Z</dc:date>
    </item>
  </channel>
</rss>

