Extra token in Popups content to pass security token into image URLs from attachments

Idea created by spiskulaesriuk-esridist Employee on Oct 5, 2015

    This idea has been merged with Show attachments in ArcGIS Online pop-up window.

    I created a layer with attachemnts. Then added a couple of images as attachments to one of features. Wanted to configure one of the images to be shown in the popup content for the related feature. It turns out that if the source feature service is secured it is necessary to pass a token with the URL of the attachment. So when configuring Popup Media url for an Image you need to pass not only the url to the attachment but a token too. Problem is the token might expire.

    Add a token/variable that would be dynamically resoled into a security token, for example like this:

    This would work by analogy to how feature fileds are resolved, for example {OBJECTID} etc.