<?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 ArcGIS Portal REST: Which token dispenser to use to access secure map services? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602488#M56389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are writing a REST application to access AGS map services. We cannot use the ArcGIS JSAPI - everything I do can only use REST verbs (GET, PUT, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp; • We want to access secure map services that are hosted on-premise on ArcGIS Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; • We have on-premise Portal for ArcGIS Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; • ArcGIS Server security (User Store, Role Store, Authentication Tier, and Authentication Mode) uses Portal for ArcGIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an Oauth2.0 token I can use this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;/portal/sharing/rest/oauth2/token?grant_type=client_credentials&amp;amp;client_id=&amp;lt;CLIENT_ID&amp;gt;&amp;amp;client_secret=&amp;lt;CLIENT_SECRET&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which returns a JSON payload like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"access_token":"fCsz6hbXOsnjfIt1j30HAofVMcu3xEhnsgao2rq4_98xOAlf72oR17LYvj1gydJ7ZYnhzxzU4G-vBWNW_0thHQqSYt-HDuzVenv-v6nws1xkGu6XOI3peobXFobZo5QV6NcglZYF6YiFbMM8MPdE7A..","expires_in":7200}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an old-fashioned REST token I can use this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;/portal/sharing/generateToken?f=json&amp;amp;username=&amp;lt;USERNAME&amp;gt;&amp;amp;password=&amp;lt;PASSWORD&amp;gt;&amp;amp;clientip=requestip&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which returns a JSON payload like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"token" : "KfD9KGedbu2lDrBc2umSVv08XDFCsU8HuKU0yBiFoFk375ahReXmcfVBbsGbGr1iotf003H319dG35T-7Q5-c933dWD0dfLPaflTu4QucS4jJ2Zcz0oIprFspEzk78tHky0IeuHswBudKDbebOQISQ..","expires" : 1453833598866,"ssl" : true}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to access:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;arcgis/rest/services/SampleWorldCities/MapServer?f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the pre-Portal for ArcGIS days of REST I could use a URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;arcgis/rest/services/SampleWorldCities/MapServer?f=json&amp;amp;token=&amp;lt;SOMETOKEN&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;SOMETOKEN&amp;gt; was obtained from the REST token dispenser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER: neither of the tokens I’ve obtained from the Portal dispenser nor the REST dispenser work. Both return:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"error":{"code":498,"message":"Invalid Token","details":[]}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE QUESTIONS:&lt;/P&gt;&lt;P&gt;&amp;nbsp; • Which token dispenser do I use?&lt;/P&gt;&lt;P&gt;&amp;nbsp; • How do I string together a URL that uses a token I have obtain (from the correct source) then I can use to access our secured services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2016 17:29:08 GMT</pubDate>
    <dc:creator>DirkVandervoort</dc:creator>
    <dc:date>2016-01-26T17:29:08Z</dc:date>
    <item>
      <title>ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602488#M56389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are writing a REST application to access AGS map services. We cannot use the ArcGIS JSAPI - everything I do can only use REST verbs (GET, PUT, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp; • We want to access secure map services that are hosted on-premise on ArcGIS Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; • We have on-premise Portal for ArcGIS Server&lt;/P&gt;&lt;P&gt;&amp;nbsp; • ArcGIS Server security (User Store, Role Store, Authentication Tier, and Authentication Mode) uses Portal for ArcGIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an Oauth2.0 token I can use this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;/portal/sharing/rest/oauth2/token?grant_type=client_credentials&amp;amp;client_id=&amp;lt;CLIENT_ID&amp;gt;&amp;amp;client_secret=&amp;lt;CLIENT_SECRET&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which returns a JSON payload like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"access_token":"fCsz6hbXOsnjfIt1j30HAofVMcu3xEhnsgao2rq4_98xOAlf72oR17LYvj1gydJ7ZYnhzxzU4G-vBWNW_0thHQqSYt-HDuzVenv-v6nws1xkGu6XOI3peobXFobZo5QV6NcglZYF6YiFbMM8MPdE7A..","expires_in":7200}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an old-fashioned REST token I can use this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;/portal/sharing/generateToken?f=json&amp;amp;username=&amp;lt;USERNAME&amp;gt;&amp;amp;password=&amp;lt;PASSWORD&amp;gt;&amp;amp;clientip=requestip&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which returns a JSON payload like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"token" : "KfD9KGedbu2lDrBc2umSVv08XDFCsU8HuKU0yBiFoFk375ahReXmcfVBbsGbGr1iotf003H319dG35T-7Q5-c933dWD0dfLPaflTu4QucS4jJ2Zcz0oIprFspEzk78tHky0IeuHswBudKDbebOQISQ..","expires" : 1453833598866,"ssl" : true}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to access:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;arcgis/rest/services/SampleWorldCities/MapServer?f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the pre-Portal for ArcGIS days of REST I could use a URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;DOMAIN&amp;gt;arcgis/rest/services/SampleWorldCities/MapServer?f=json&amp;amp;token=&amp;lt;SOMETOKEN&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;SOMETOKEN&amp;gt; was obtained from the REST token dispenser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER: neither of the tokens I’ve obtained from the Portal dispenser nor the REST dispenser work. Both return:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{"error":{"code":498,"message":"Invalid Token","details":[]}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE QUESTIONS:&lt;/P&gt;&lt;P&gt;&amp;nbsp; • Which token dispenser do I use?&lt;/P&gt;&lt;P&gt;&amp;nbsp; • How do I string together a URL that uses a token I have obtain (from the correct source) then I can use to access our secured services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602488#M56389</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2016-01-26T17:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602489#M56390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you have security setup for Portal for ArcGIS?&amp;nbsp; Are you using built-in, or enterprise logins?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602489#M56390</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-01-26T19:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602490#M56391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently built-in, but we are in the process of migrating to enterprise. The credentials I use are the built-ins - which are still enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 20:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602490#M56391</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2016-01-26T20:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602491#M56392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get this working by generating the token using the following URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/portal/sharing/generateToken&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The environment I'm working in is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.3.1&lt;/P&gt;&lt;P&gt;Portal for ArcGIS 10.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Built-in security&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Federated Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the python snippet I used to query a service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import urllib, urllib2, json

username = "portadmin"
password = "portadmin"

&lt;SPAN&gt;tokenURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/portal/sharing/generateToken'&lt;/SPAN&gt;
&lt;SPAN&gt;params = {'f': 'pjson', 'username': username, 'password': password, 'referer': '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;'}&lt;/SPAN&gt;
req = urllib2.Request(tokenURL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
token = data['token']


&lt;SPAN&gt;serviceURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgis/rest/services/Airports/MapServer'&lt;/SPAN&gt;
params = {'f': 'json', 'token': token}
req = urllib2.Request(serviceURL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
print data&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602491#M56392</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T01:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602492#M56393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works for me - thanks Jake. In Javascript as well, when I remove the ClientIP parameter (which I had originally mistyped as "client" - without the IP, which was where the original error was originating&lt;SPAN style="line-height: 1.5;"&gt;) it works as well.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT QUESTION: Our corporate directive is to use entirely ADFS security. When I plug in my enterprise U/P in the above script I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;{u'error': {u'message': u'Unable to generate token.', u'code': 400, u'details': [u'Invalid username or password.']}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;That same enterprise U/P allows me to log in to Portal for ArcGIS.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;Got any hints on how I can use my enterprise login to generate a token?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5;"&gt;TIA&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 19:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602492#M56393</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2016-01-29T19:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602493#M56394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received the same error when I enabled Portal to use enterprise logins.&amp;nbsp; This may be a bug.&amp;nbsp; I would recommend following up with Tech Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 17:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602493#M56394</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-02-02T17:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602494#M56395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having exactly this same issue with ArcGIS Server 10.4 federated with a Portal for ArcGIS and using its SAML enterprise login to authenticate users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only generate tokens using the Primary Admin Account. Only this works. Any other user fails although those users can login fine directly to the Server or Portal and use their map services without problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generate a token is the problem with any other user than the primary admin account via&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F%5Bserver" rel="nofollow" target="_blank"&gt;https://[server&lt;/A&gt;&lt;SPAN&gt; FQDN]/arcgis/admin/generateToken&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F%5Bportal" rel="nofollow" target="_blank"&gt;https://[portal&lt;/A&gt;&lt;SPAN&gt; FQDN]/arcgis/sharing/generateToken &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is this a bug? and what's the solution or workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please. Thanks.&lt;IMG alt="screen.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/200186_screen.png" style="width: 620px; height: 381px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 02:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602494#M56395</guid>
      <dc:creator>AkakpoAgbago</dc:creator>
      <dc:date>2016-05-14T02:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602495#M56396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone been able to programatically generate tokens for SAML users? I am facing similar issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602495#M56396</guid>
      <dc:creator>SzymonPiskula1</dc:creator>
      <dc:date>2018-06-01T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602496#M56397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a problem for me as well.&lt;/P&gt;&lt;P&gt;1. Enterprise accounts (ADFS in this case) can't be used to generate a token&lt;/P&gt;&lt;P&gt;2. ArcGIS accounts can be used to generate token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to generate a token using an Enterprise account?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 03:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602496#M56397</guid>
      <dc:creator>RobertDriessen2</dc:creator>
      <dc:date>2018-07-23T03:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602497#M56398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I to am trying to manage ArcGIS Server services via the REST API using python and also having this issue with a federated environment at version 10.6.1.&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we know if someone has found a resolution to this or still being looked into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 23:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/602497#M56398</guid>
      <dc:creator>ScottLarkin</dc:creator>
      <dc:date>2019-05-28T23:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST: Which token dispenser to use to access secure map services?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/1239672#M79608</link>
      <description>&lt;P&gt;I too can only generate a valid token if I use the Primary Admin Account.&amp;nbsp; If I use any other account, it will generate the token for the ArcGIS Server, but any attempt to use the token returns "Invalid Token".&amp;nbsp; &amp;nbsp;What is the work around here?&amp;nbsp; I cannot give the Primary Admin Account to external users and systems.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using version 10.9.1.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-portal-rest-which-token-dispenser-to-use-to/m-p/1239672#M79608</guid>
      <dc:creator>BrianJohnston4</dc:creator>
      <dc:date>2022-12-09T15:53:37Z</dc:date>
    </item>
  </channel>
</rss>

