In my application, I have a few navigation tabs. Each tab loads a web map from Portal for ArcGIS on-premise.
When each tab is clicked, it asks for the Portal credentials in order to load the maps.
I want end users to log in once on the main page and be able to access the maps without logging in over and over again. Are there any ways do so or other alternative ways?
2 Answers 2
You are going to want to change the Sharing properties of the WebMap to Share with my Portal.
-
Try the "Everyone" sharing option, pretty sure the users would still have to log into the Portal, but then wouldn't have to log in anymore.Maksim– Maksim2016年10月06日 17:14:36 +00:00Commented Oct 6, 2016 at 17:14
-
@Maksim Sharing with "everyone" may be undesirable. You're basically removing the security layer instead of managing it.Evan– Evan2016年10月06日 18:30:41 +00:00Commented Oct 6, 2016 at 18:30
Check out the Named User Login guide in the documentation.
You should register your app in the portal and use the IdentityManager class to handle their authentication. This should prevent the subsequent logins.
-
The app is not created using any ArcGIS ready-made templates or using ArcGIS webappbuilder. Can I still register the app in the portal?Saroj Thapa– Saroj Thapa2016年10月06日 18:42:23 +00:00Commented Oct 6, 2016 at 18:42
-
Yes, you can still register it. The first step is to add a new item (Web Application) which just creates an item within the portal. Then on the item details page, hit the register button to generate the
appId
. Be sure to set the redirect URI to the location your app will be hosted.Evan– Evan2016年10月06日 18:52:50 +00:00Commented Oct 6, 2016 at 18:52 -
Thank you so much Evan. I am going to apply your suggestion.Saroj Thapa– Saroj Thapa2016年10月06日 18:56:13 +00:00Commented Oct 6, 2016 at 18:56
-
This is called Application Authentication. This video might help youtube.com/watch?v=_csHP33lVY8jakc– jakc2016年10月07日 13:04:55 +00:00Commented Oct 7, 2016 at 13:04
Explore related questions
See similar questions with these tags.