I'm hosting a application, built with WAB, on an external facing web server. The application utilizes an AGOL web map that is shared to Everyone and contains numerous publicly available and unsecured web service layers. What I would like to do is add in some secured web services, which would be hosted on my own ArcGIS Server, and have an option for the end user to login and display the secured content; HOWEVER, I don't want the initial load of the web app to display the login dialogue. I'd rather it be an option that a user invokes.
Below are some details of my architecture/configuration:
How do I deploy this scenario?
Solved! Go to Solution.
Brian,
Your problem is going to be that when you add the secured layer then automatically on startup the user will be challenged for a username and password. the only way you will not be challenged is is the layer is not loaded into the web map at the start. You can use the AddLayer Widget to add predefined layers at runtime.
Brian,
Your problem is going to be that when you add the secured layer then automatically on startup the user will be challenged for a username and password. the only way you will not be challenged is is the layer is not loaded into the web map at the start. You can use the AddLayer Widget to add predefined layers at runtime.
Thanks Robert Scheitlin, GISP...I think I may just end up maintaining a second application, registered with AGOL OAuth, and add the secured services to that one. I'd prefer that public users not be able to see the secured layers at all, which they presumably could if I use the AddLayer Widget. I think I'll just go old school and add a link to launch the secured application on its own.
I have a similar situation, in that I have a publicly viewable app and would like to have some layers viewable only by some. I would prefer that all users are not challenged with a log in screen. Also, our organization uses federated log-ins, and the log-in screen that comes up for these layers cannot take federated log ins. Also, I tried the "Add Data" widget, but it does not "see" the secured layers in the curated group, so they can't be added.
Sandy,
Sorry. You are in a tough spot. I am not sure what to do in your situation.