Public Gallery for Private Organization

473
3
02-13-2013 04:19 PM
DavinShokes1
Occasional Contributor II
Hello,
After a few weeks of playing around with JS, I like the premise of adapting the public gallery template. We have an AGOL subscription but no ArcGIS server.  For now, we are hosting our javascript on our own server since I can see rewrites quickly.

I've run into some credential problems that I need some advice with. Web apps that I've written display private feature services fine after signing in with the identity manager. I've tried to test the public gallery template but can't seem to get past the sign in popup with non-public data. Here are some results from different tests:
Private group id - Sign in fails due to authentication and group gallery page never comes into focus

Public group id - private web apps - No sign in popup and no maps are found or displayed on gallery page

Public group id, public web apps - Maps appear in gallery and load without issue.

Other info that may help:
I am using the same proxy as previous testing.
All feature services are hosted on AGOL
Our website I host scripting on is not https.
Our AGOL organization does not have "Allow access to the organization through SSL only" checked under settings.
Also " Allow anonymous access to your organization" seems to have no effect.

If anyone has some input, it would be very appreciated. Perhaps there could be a sign in link on the gallery page that triggers private maps to be populated into the grid/list as well? This way we could still host public maps for citizens involved in community outreach programs.

Thank you.
Davin
0 Kudos
3 Replies
DavinShokes1
Occasional Contributor II
Something else I've noticed is the tool tip for the signin popup shows a bad address:
http://www.arcgis.com//sharing/rest/community/groups/<our group id>

I've gone through the config.js and common.js files and tried removing the slash after www.arcgis.com and the one before "sharing/rest/community/groups" but the 2 "/" stay in the tooltip. Still digging.

Thanks.

EDIT: I solved the double '/'. It was because I commented out the default group line with // instead of /**/
This didn't fix main log in issue though.
0 Kudos
MattDriscoll
Esri Contributor
Hey RTC GIS,

https might be the issue. Any way you could get your server using HTTPS? Otherwise, it might be the proxy. Did you set up a proxy on your server?

Make sure to change the portal URL in the config if you have your own subscription as well.
0 Kudos
DavinShokes1
Occasional Contributor II
Thanks for the reply. Unfortunately, we dont have time too work out the issues with esri's javascript templates. For now we'll just have to settle with using their android and ios apps to edit our web maps. Maybe in the future, the website will be easier to navigate (i.e. searchable, no dead links) or the templates/tutorials will have more help for those of us trying to host our own sites without arcgis server.

Davin
0 Kudos