ivosturm / ArcGIS

Advanced ArcGIS widget for Mendix
1 stars 6 forks source link

Have to log into ArcGIS Online every time the page loads? Missing token? #5

Closed imeidopf closed 3 years ago

imeidopf commented 3 years ago

I always have to sign into ArcGIS Online when my pages load. Why? There's an error about missing tokens:

Error: Token Required
    at Object.E.a.load (request.js:5)
    at mxui.js?637556528607360354:5
    at b (mxui.js?637556528607360354:5)
    at v (mxui.js?637556528607360354:5)
    at e.Deferred.resolve.callback (mxui.js?637556528607360354:5)
    at b (mxui.js?637556528607360354:5)
    at v (mxui.js?637556528607360354:5)
    at e.Deferred.resolve.callback (mxui.js?637556528607360354:5)
    at mxui.js?637556528607360354:5
    at u (mxui.js?637556528607360354:5)
(anonymous) @ mxui.js?637556528607360354:79

I don't see anything token related in the widget configuration.

ivosturm commented 3 years ago

Hi Jason,

From what I understand you are trying to interact with an ArcGIS layer that is secured, hence needs an ArcGIS online account. That scenario isn't supported within the widget, see the 'Limitations' part of the Documentation in the Mendix Marketplace. Working with a secured layer needs some extra handling within the widget. I have done it before, but it depends on the specific client set up and how they want to use their ArcGIS users (system versus employee).