storymap-journal icon indicating copy to clipboard operation
storymap-journal copied to clipboard

Better support for enterprise logins

Open regan-sarwas opened this issue 7 years ago • 2 comments

We use a single custom template (https://www.nps.gov/gis/storymaps/mapjournal/v1/index.html) to create and view application items from many users (authorizedOwners: ["*"]). Most of the applications are public others, usually while under development, are not. This works great with basic (builtin) accounts, which are handled with the esri/arcgis/Portal.signIn() and the Identity Manager. Users are only asked to authenticate when viewing a private application, or when invoking builder (&edit). Unfortunately, Portal.signIn() does not appear to support enterprise accounts.

I understand Oauth is the preferred option (because it supports enterprise accounts?), however as stated in index.html, this will require all users to login, which is obviously unacceptable if we are serving an app to the general public.

Could portalLogin() be revised to use Oauth instead of Portal.signIn()?

regan-sarwas avatar Nov 03 '16 00:11 regan-sarwas

Thanks for your feedback about this, @regan-sarwas. We will take a look at this for an upcoming release.

Until then you could deploy two copies of your custom template, one for viewing your public stories (without OAuth) and one for builder (with OAuth).

oevans avatar Nov 03 '16 12:11 oevans

After additional testing, I think the only thing that needs fixing is removing this comment in the index.html. In my testing, if the appid is shared with everyone, and a valid oAuthAppId and authorizedOwners: ["*"] are specified in the index.html, then viewers of the app are not required to authenticate.

regan-sarwas avatar Feb 28 '17 16:02 regan-sarwas