Hi,
I use a federated Arcgis Server in an Portal and I do see all the services appearing in the content directory of the portal. I noticed that the service url for each service points directly to the Arcgis Server (ex: https://arcgisserver/arcgis/rest/services/myservice/MapServer), is it normal ?
Then I have created an application in the portal. I use this app to do app login to get an authentication token.
Ex: https://SERVER/portal/sharing/rest/oauth2/token?client_id=CLIENTIDgrant_type=client_credentials&client_secret=CLIENT_SECRET
The /token works fine. However, if I use the token I got to query my Arcgis Service (ex: https://SERVER/arcgis/rest/services/SERVICE/MapServer?f=json&token=...), I got an invalid token error.
Is there something specific to do so that I can access the MapServer with a token from the portal ?
Thanks for your help!