Select to view content in your preferred language

Sign in only when accessing Edit Widget

1550
2
Jump to solution
07-30-2013 09:58 AM
ColeS
by
Emerging Contributor
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?

Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Cole,

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.

Regards

Anthony

View solution in original post

0 Kudos
2 Replies
AnthonyGiles
Honored Contributor
Cole,

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.

Regards

Anthony
0 Kudos
ColeS
by
Emerging Contributor
Thanks Anthony, I will look into those suggestions.
0 Kudos