Public web app requires login

956
5
Jump to solution
06-03-2021 08:46 PM
Labels (2)
salmonjmar
New Contributor II

Hi and thank you in advance for any help you can offer. I just tried to replicate a web app I created 6 months ago with different data and every time I get a login window. I checked to see if any layers or files were not shared publically, checked the security setting to allow anonymous access, and I even tried to create a web app using only an ESRI base map and it still asked for login. This leads me to believe that the layers are not the problem.  This is the link to the web app: https://martin-salmon.maps.arcgis.com/apps/StoryMapBasic/index.html?appid=53adf2dbd72f4e58b5ccff3eab...

The 6-month-old web app is still working. Could it be that the 2021 update to AGOL is creating this problem?

many thanks for your help.

Martin

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
salmonjmar
New Contributor II

I figured it out. The web map automatically selects the show developer base maps options w¿hich creates the problem. once you turn it off and save the problem goes away. 

View solution in original post

5 Replies
jcarlson
MVP Frequent Contributor

Watching the network traffic when this app loads, I can see the various requests being made right up until the sign-in prompt shows up. Testing them individually, I can see that the following request is giving a problem:

https://basemaps-api.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer?f=json 

When I browse to this URL, I see the following:

{"error":{"code":499,"message":"Token Required.","details":[]}}

The next request made is to:

https://basemaps-api.arcgis.com/arcgis/rest/info?f=json

And then finally to:

https://martin-salmon.maps.arcgis.com/sharing/rest/oauth2/platformSelf

Browsing to either of the latter two don't give my any useful information. I'm out on a limb here, but I think there's some authorization problem with the OSM vector basemap, and it's trying to retrieve a token through your AGOL org?

I'd go into your basemaps group and make sure the maps and layers in your basemaps are all shared publicly. Alternatively, try changing the basemap on this particular map and see if it still gives you the same problem.

- Josh Carlson
Kendall County GIS
salmonjmar
New Contributor II

thanks, Josh. I tried Open Street Map and ESRI base maps and the result is the same for both. I´ll check the base maps to see if that solves the problem.

Many thanks. 

0 Kudos
salmonjmar
New Contributor II

I figured it out. The web map automatically selects the show developer base maps options w¿hich creates the problem. once you turn it off and save the problem goes away. 

StevenHills
New Contributor II

I have been struggling with this myself for a number of projects and couldn't seem to suss out an answer on the docs. Thanks for this solution.

0 Kudos
ChrisGIS
New Contributor

How did you turn this off?  Like above I am watching my traffic and I seem to be having issues with a world basemapv2.

I put my link below but I am messing with it so much right now things may be up and down with it.

https://storymaps.arcgis.com/stories/0238c0162f8d44259c80c5f7200a4116

0 Kudos