Hi Jay, you might want to review our docs about working with the ArcGIS Platform, and about accessing secure resources:
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.
Sample using OAuth as recommended in the previous guide topics.
You can also use a proxy to access secure services, from AGO and other Servers.
I got it working by using the URL from the subscriber content and adding a new item from web in my own AGO content. When I pasted the URL it prompted me for credentials and I chose to store them in the service. I then shared that new item in my AGO. Is this not a secure or recommended workflow?
Well, maybe it's fine. Is the new item in your AGO private or public? If it's public, I would be concerned that anyone could stumble across a link to that AGO item that consumes content that (presumably) requires credits.