Select to view content in your preferred language

accessing private ArcGIS online maps

6342
10
11-15-2011 10:46 AM
danbecker
Frequent Contributor
Have a map saved on arcgis online that has a few shapefiles added to it. This map is only viewable to a private group, not the public.

Is there any way to reference this map 'service' from a template on our webserver? I'm able to successfully view a public map service from ArcGIS online by copying the public mapid and inserting it into the template index.html.

I also tried to generate a token as explained in this guide, and was able to get the username/password login when accessing the template, but all username/password entries fail?

http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/AppGuide/Maps.pdf

is this even possible?

thanks!

ps. sorry for double-posting the issue, but the other thread was referring to https (SSL) secure ArcGIS Server resources.
Tags (2)
0 Kudos
10 Replies
MikeMinami
Esri Notable Contributor
Did you see the 8th post here?

http://forums.arcgis.com/threads/27946-using-secure-ArcGIS-Server-services?p=148818&viewfull=1#post1...

Hopefully this works for you.

Thanks,

Mike
0 Kudos
danbecker
Frequent Contributor
hi mike-

As far as I could tell, the 8th post in that thread just refers to access secure (https) arcgis-server services, not private services on ArcGIS online.
0 Kudos
MikeMinami
Esri Notable Contributor
Maybe I'm not understanding what you need. This is what I think you are trying to do...


  • You have created a web map and shared with a group in ArcGIS Online.

  • You have downloaded a template application (from the Share button on the map viewer).

  • You have installed the template application on your web server and pointed it to the ID of your web map. The problem is that your web map is not shared with everyone, so it doesn't draw.


Here's my answer to the above, which still may not be the answer you're looking for...
When did you download the template application? You may need to download it again. They have been updated within the last month to handle authentication of a user. Basically, when you run the application, the application will prompt you to sign in using your login to arcgis.com. As long as the user logged in is a member of the private group, they should be able to see the map.

The underlying new feature that handles this in the API is the Identity Manager. Documentation on that can be found here.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_identit...

If the above is not the case, perhaps you can post more information.

Thanks,

Mike
0 Kudos
danbecker
Frequent Contributor
i think i found out why I wasn't able to access my arcgis.com webmap from a template on our local webserver....yesterday at the esri SWUG I found out that only silverlight viewers have the ability to login to esri global acct, to access private web maps.

how...i'm going to a tech. workshop today on silverlight to find out!

thanks again Mike!
0 Kudos
MikeMinami
Esri Notable Contributor
I think we may be talking about different "templates" here...

Here's what you can do from arcgis.com.


  1. You can author a web map and share it with a group.

  2. You can download a web application template from the Share button on the Map Viewer.

  3. You can 'Publish' that application to arcgis online if you don't have a web server, or you can 'Download' it to deploy to your own server. The advantage of downloading is that you have the source code and can modify the application. However, some of these template are configurable without programming.

  4. Because your map is not shared with everyone, any user who is a member of the group it is shared with can sign in with their Esri Global ID and access the application.


The attached image shows where in the Map Viewer you'll find these template applications.

Thanks,

Mike
0 Kudos
danbecker
Frequent Contributor
hey mike-

thanks again for your help!

For a webapp newbie, it can get quite confusing, but the SW user conf. really summed things up:

1. Flex/Silverlight web viewer apps are free to download, they enable you to configure a custom website viewer in the language of your choosing.
-the viewer connects to SERVICES only, so, you either have to use freely provided data/imagery services from ArcGIS online, OR have an installation of ArcGIS for Server

2. You can also create a basic map using the ArcGIS explorer or web viewer via ArcGIS Online. There is one slight advantage to using ArcGIS Online; you can upload .zipped shapefiles to your map. Otherwise, ArcGIS for Server is required.

3. If your not liking the ArcGIS Explorer or web view maps from ArcGIS online, you can create the share button while on the map, and use a template. This template can be downloaded to your local server and hosted, OR can remain on ArcGIS Online.
0 Kudos
SargentMcDonald
Deactivated User
I think we may be talking about different "templates" here...

Here's what you can do from arcgis.com.


  1. You can author a web map and share it with a group.

  2. You can download a web application template from the Share button on the Map Viewer.

  3. You can 'Publish' that application to arcgis online if you don't have a web server, or you can 'Download' it to deploy to your own server. The advantage of downloading is that you have the source code and can modify the application. However, some of these template are configurable without programming.

  4. Because your map is not shared with everyone, any user who is a member of the group it is shared with can sign in with their Esri Global ID and access the application.


The attached image shows where in the Map Viewer you'll find these template applications.

Thanks,

Mike



Mike,
I can not login to a map shared with a group as described above using a user_name/pass that I know is part of the proper group, no logins for that group work. It just keeps saying Invalid username/password. Please try again. I have tried FF, IE, Chrome and no luck. I am using the basic viewer downloaded to our server with the proper webmap id. The AG Online hosted method works with these logins. The map services in the webmap are not secure from our AGS.
Thanks.
0 Kudos
CharlieHofmann
Deactivated User
I'm having the same issue. Even with a webmap hosted on my personal account (no SSL or security involved) my username and password is rejected when I attempt to view the application hosted on my site.

The webmap is shared only to a group, and I'm a member of that group. Here's a link to the application: http://www.802dataviz.com/app_test/basic2/basicviewer/. It contains a single shapefile, uploaded as a .zip to my personal account. Not sure what my issue is here, but it would be great to get this working-- much easier to demo a client's web app with the correct data visible.

Thanks!

Charlie
0 Kudos
MikeMinami
Esri Notable Contributor
When I've seen problems like this in the past, it's typically a proxy issue. Here's some info from a recent exchange one of our developers had with another person having similar problems...

I think this is a proxy issue. The proxy would need to be on the applications web server.  The proxy url is set in index.html, look for the proxyurl option.  The proxy isn't always used - but there are some situations when its needed. Another issue you might run into is that the identity manager expects the app to be running using https since you are working with secure items. If its not run over https then you might see the log-in dialog appear but it won't successfully log you in.
If you are working with only public web maps and services then the templates should work - its only going to be an issue when you are working with non-public maps.


A simple short term solution would be to make your web map public.

hope this helps,

Mike
0 Kudos