As the name suggests, I have a ArcGIS Server federated to ArcGIS Portal. Portal auth takes over here so I can generate a token with ArcGIS Portal `/sharing/rest/generateToken`. I can then take this token and generate a server URL token - or so the docs would lead me to believe.
https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm
but when I get the "server token" the response from the `/query` endpoint is always invalid token. I'm using `client=requestip` and `serverUrl=https://...../server/` and `token=<the portal token i got in step 1>`
Has anyone gotten this working?
More details:
step 1 - get a portal token:
Step 2 - pass portal token to get a serverToken:
Step 3: pass server token to the query endpoint
Update - I found the issue. Using client:requestip didn't work. No reason as to why - but after changing the client to referer and setting `referer=some-referer` I was able to use the token.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.