AnsweredAssumed Answered

Long-lived tokens in ArcGIS Online?

Question asked by zkovacs on Oct 12, 2017
Latest reply on Jan 10, 2018 by zkovacs

I have an issue I could work around but was wondering if there is any way to get AGOL to generate long-lived tokens (like the namesake in AG Server) for items like PDFs, Word Docs etc.


I issue I have is that I have some PDF files with engineering plans (uploaded and stored in AGOL) I need to add as links to a Story Map. When I click on a PDF item in My content and then open the file, I can see that a token is generated to allow access and display of the content. The problem is that this token is short-lived and only works for a limited time (maybe a week?), so it stops working when the token expires.


The "workaround" I can think of is to use the link to the PDF item in the Story Map, and then have the user to click manually on the download button if they want to see the content. This works fine, but it is clunky and breaks the user experience which is the whole point of Story Maps isn't it?

Is there a way to get long-lived tokens generated in AGOL so we can link and open PDF (and other document) items with a direct link containing the token? I couldn't find any option in the REST API/admin part of AGOL in a quick search, but I'm hoping an expert from Esri could help me out with this. Thanks in advance!