I have a secured map service with feature capabilities. I want all users to be able to see the service read-only when they visit the application and only be prompted for credentials if they click on the edit widget.
As it is now, when I add the service to the application builder as an operational layer, all users are prompted for credentials as soon as the page loads. Is there a way to set-it up as first described?
I don't think that is possible without code modification as the edit widget is designed to work against layers that are already loaded into the application. If you have the ability to change the source code you could change the code within the widget to dynamically add the feature service when the widget is opened, so the user will only be prompted then.
Or you could run two different main config files one that points to a non secure service for normal users and one that points to a secure service for editors.
I don't think that is possible without code modification as the edit widget is designed to work against layers that are already loaded into the application. If you have the ability to change the source code you could change the code within the widget to dynamically add the feature service when the widget is opened, so the user will only be prompted then.
Or you could run two different main config files one that points to a non secure service for normal users and one that points to a secure service for editors.