Public web app requires login

6173
11
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

11 Replies
jcarlson
MVP Esteemed 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
barryguidry1
New Contributor

Josh, so this means it is the Open Street Maps basemap causing this?

Thanks.

Barry

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.

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

studebakers_Boulder
New Contributor III

Struggling with the same issue - it's the same basemap we use on all public facing maps/apps. Wondering if creating this map in the new Map Viewer may have enabled this 'developer basemaps' option you're speaking of. How do you go about disabling that option? Thanks so much!

0 Kudos
rgmingo
New Contributor II

Where do you turn the "developer base maps option" off? 

Thanks

0 Kudos
StormwaterAdmin
New Contributor III

Were you able to figure out how to turn it off? I have the same issue and can't find that option.

Thanks

0 Kudos