Hi everyone,
I'd like to make an ArcGIS JS Web Application that uses some protected ArcGIS services (feature services, map services, ecc.).
My goal, depending on whether the user is authorized or not, is respectively to add the protected layers directly to the map (with a "map.addLayer()" method) or to show only partial data of the layers, avoiding to publish two separate (but twin) services, one protected and the other one public.
Is there a way to achieve it other than to dinamically create every time a layer by directly access the gdb feature classes?
Thank you.
Have you looked at this: https://developers.arcgis.com/javascript/latest/secure-resources/