You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()?
The text was updated successfully, but these errors were encountered:
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.
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()?
The text was updated successfully, but these errors were encountered: