The challenge arises when I want to load specific secured ArcGIS online content via the ArcGIS JavaScript API, specifically from some FeatureLayers which are secured. I looked into the documentation and it seems the best way forward would be a so-called 'application login'. For this I want to setup an OAuth application login based on Client ID and Client Secret. With these two I can get a valid token via OAuth and use that token to access the content by feeding the token to the IdentityManager via the JavaScript API.
The problem I have is that I am continously getting the same error with name identity manager not authorized and message You are currently signed in as: AppID. You do not have access to this resource:
So this is were it goes wrong currently, I can't seem to figure out where to make it explicit on the ArcGIS online side that this specific secured FeatureLayer can be accessed via this application login, hence currently I am getting errors that the valid token and app id don't have access to the resource, being the end-point of the secured FeatureLayer.
Does anybody know how to associate a secured FeatureLayer in ArcGIS online to an application login?
Did you review this post? Might be helpfulhttps://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-access-a-group-shared-feature-layer-in-a/m-p/568424/highlight/true#M15186
Anybody? Sounds like a very common use case, so eager to hear from other peoples experience.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.