Arcgis Online Web app public access, asking for login

12498
23
Jump to solution
08-18-2018 06:44 AM
JonathanHallam1
New Contributor III

I have numerous arcgis online web apps created from web maps that are for outdoor events, I share publicly. 

The web map behind the app is all sharing publicly correctly not asking for login and showing in arcgis Explorer application. 

But the web app keeps going to login page.

I don't know how the web map is working but not web app?

https://woodhall.maps.arcgis.com/apps/webappviewer/index.html?id=b81bca5568a54383bbc1d502628ab63f&mobileBreakPoint=300

Link above is meant to go straight to web app

Tags (2)
0 Kudos
23 Replies
JustMapSynch
New Contributor III

You are good to have gotten into the weeds and figured this out for him, but how did you figure it out?  Teach the rest of us to fish, please!  I live in dread of doing something that will summon the fell unanticipated log screen, and not knowing how to find the problem.  All the documentation really advises is to "make sure everything is shared" and good luck.

0 Kudos
ChrisWhitmore
Esri Regular Contributor

Hi @Map_Sync - unfortunately, no specific tool. I used the needle in the haystack approach and tried to open each layer in the app until it was evident which were private. Your earlier comment regarding the second and a half window before getting bounced to sign is true for the ui experience. However, if you open the developer tools for your browser, you can easily persist the traffic from the initial page load. Which is then basically a log of the network traffic when the app loads all the layers in contains. In my case, I used Chrome's dev tools (CTRL + SHFT + I will open them). 

The network tab in dev tools is where the traffic can be found. Selecting the Preserve log option (highlighted) below will keep the log as you go from page to page (especially nice in scenarios like this). I also filtered content to only urls with "Server" in the url, which should be all feature services and map services. Not always the case the offending url is a feature service or map service (or ArcGIS service in general) but most often, it is. And selecting the XHR option will further refine the network traffic to only include cross-domain requests (which basically excludes html / javascript traffic and generally returns service requests). So in this case, filtering on 'server' and XHR is a bit redundant but both are useful on their own. 

Once I had the list below, I opened each unique request in a separate tab until it was clear which were unshared. 

All of this can be done in Fiddler or any other tool that captures network traffic. 

note: the screenshot below is from a sample I set up..not the app Jonathan posted.

Cheers

Chris

JustMapSynch
New Contributor III

It's going to take me a little while to absorb that answer and try it out,

but it has all the markings of a great response. Thank you so much!

0 Kudos
FiadhNiDhonnchadha
New Contributor II

@Jianxia @AlixVezina 

Hi all,

I've a similar issue with a public facing experience builder site here: https://experience.arcgis.com/experience/4409d244b5f34f77a996047d4165fb38 

We're experiencing sporadic issues with the ArcGIS Online Sign In box appearing on the overview map at the bottom of the homepage. The very odd thing is that once we click cancel a few times on the box it disappears and the user can interact with the map. We've checked and double checked our layers and don't have any web services on the map. Is this a bug?

Thanks,

Fiadh

Jianxia
Esri Regular Contributor

@JonathanHallam1it turns out the overview map is not shared publicly. When I open the map in the incognito window, a sign in dialog pops up.

https://www.arcgis.com/home/search.html?q=45b573f16eaf47a0a05924f8a0d13c64&showFilters=false

Jianxia_0-1625589713296.png

 

0 Kudos
Jianxia
Esri Regular Contributor

However, once I sign in with my AGOL account, the map opens. So this tells there are some Subscriber content from Living Atlas in the map. @AlixVezina found it might be this subscriber content that causes the issue.

https://www.arcgis.com/home/item.html?id=0895f24cf85b4251990a24305447ded7

Looks like Experience Builder is not able to detect it automatically. When the app is published, the Subscriber content window from ExB should pop up and ask you to grant permissions for the public access. As a test, could you please remove this item from the app?

0 Kudos
FiadhNiDhonnchadha
New Contributor II

Hi Jianxia,

I've removed that map and it seems to logging in ok now. Duplicated the ExB and removed the map as a test: https://experience.arcgis.com/experience/bc9803c750b046e9a1490b2af7376626/

When you mentioned the subscriber content, the only thing I could think of was an OS Basemap from ESRI UK that is from ArcGIS Online section, so I swapped out the basemap to the ESRI Imagery basemap but it's still not working. I created a second ExB with just the map and it won't log in either, map and data is all public - they're just feature layers? https://experience.arcgis.com/experience/689253cfbce94b159f79036bc7a13a34 

Any advice you could give would be most appreciated. Is it the basemap?

Thank you!

0 Kudos
Jianxia
Esri Regular Contributor

As there are many layers in the map, could you please contact Technical Support to help identify which layer might cause the problem?

0 Kudos
MattLamborn707
New Contributor II

Hi @Jianxia and @FiadhNiDhonnchadha  - did you ever find out what was causing this? We're having the exact same issue and have gone through everything to make sure all is shared to the public! Thx, Matt

 

The URL: https://experience.arcgis.com/experience/9fb1c129ce18410ca92e1558a7be5dbc/

 

0 Kudos
Jianxia
Esri Regular Contributor

@MattLamborn707, this item is asking for permissions. Making sure it is shared publicly.

https://www.arcgis.com/sharing/rest/content/items/b51701ecd19c49aaba649e850e97fb39?f=json

 

 

0 Kudos