I need to change the layer visibility for users in my application. Layers are served by OL 3 by a wms/wfs request. The problem is that when I change the accessibility for users, banning someone to see layers, they still have access to them as long as they don't log out or close the browser.
-
1What if you restart the service?– user30184Commented Feb 10, 2017 at 16:38
-
How are you banning them from seeing the layer?– Andrea AimeCommented Feb 11, 2017 at 10:06
-
I am simply giving them (or removing) specific role for reading/writing the layers. I am doing it by the web administrator interface.I thought it was a cache problem and I tried to check the Enable Data Security option in the caching default. This, if I understood good, should check the user permission everytime the service is called, but nothing changed. I really appreciate your answers. Federico– FedericoCommented Feb 13, 2017 at 6:07
Add a comment
|
1 Answer
I found a temporary solution. I had to clean the cache for making the update work immediately. I could not rebuild the whole application so, I created a small OWS like explained here, to clean the authentication cache, I then added it to the WEB-INF/lib folder. You should have any other solutions I would appreciate. Thanks
Federico