I am trying to use token based authentication to get access to a restricted map layer.
I can generate a token using the url:
Then using the token in the url to access the map layer, I use:
But the url always redirects me to the 'ArcGIS Server REST API Login' screen. Can you help me with this by chance?