Everything I have read looks to relate to AGOL apps and not a custom deployed 4.12 app.
I assume a request interceptor is needed to add it the imageryserver url. Where do I generate the token then?
Hi Jay, you might want to review our docs about working with the ArcGIS Platform, and about accessing secure resources:
Working with the ArcGIS Platform | ArcGIS API for JavaScript 4.12
Access secure resources | ArcGIS API for JavaScript 4.12
Thanks Noah. I have been looking at those and, I'm sure I am overlooking something, everything I have read is describing the process to use it with a AGOL App. I need a custom app built in 4.12 to use subscriber content.
This workflow is specific to a custom JS API application. Requires making a registered app on AGO or via the Developer's site, and adding the relevant code to your app.
This sample uses a service proxy to access a premium service from AGO.
Directions widget | ArcGIS API for JavaScript 4.12
Sample using OAuth as recommended in the previous guide topics.
Access ArcGIS Online items using OAuthentication | ArcGIS API for JavaScript 4.12
You can also use a proxy to access secure services, from AGO and other Servers.
Proxy pages with the API | ArcGIS API for JavaScript 4.12
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.