POST
|
I am trying to connect to my organizations AGOL account and retrieve a list of of objects. Our AGOL is authenticated using SAML. I have followed the steps here to create an application and used Postman to generate the python code required to create a token which I've made into a module called getToken. When I try and search for AGOL content all I get is public content back. Which makes me think my token isn't working or getting passed in correctly to the GIS module? This is my code for my search: from arcgis.gis import GIS import getToken agolToken = getToken.getToken() url = "https://myOrg.maps.arcgis.com/home" item_types = [ "Web Map", "Web Mapping Application", "Map Service", "Feature Service" ] gis = GIS(url, token =agolToken) for itemtype in item_types: agol_items = gis.content.search(query="", sort_field="title", sort_order="asc", item_type=itemtype, max_items = 100000) for item in agol_items: print(item['title'],item['access'],item['type']) As stated, this will only return public items. Is there a way I can be sure that my token is working? Is there something I am doing wrong? The token is coming in correctly from my getToken module. Even when I hardcode it in I still only get public content. Edit: I've tried passing in my client ID as suggested here. That brings up: Please sign in to your GIS and paste the code that is obtained below. If a web browser does not automatically open, please navigate to the URL below yourself instead. Opening web browser to navigate to: <URL> Enter code obtained on signing in using SAML: The page that comes up says Invalid redirect_uri Error: 400
... View more
04-08-2019
02:59 PM
|
0
|
3
|
1763
|
POST
|
Title says it all. I would like the ability to publish 1 service that allows me to enable feature access and secure it so I can grant a select few the ability to edit, and keep the ability to view the data open to the public. The only way I know to do this is by publishing two separate services. I'd like to do it in one in order to keep things clean and tidy on my server. If there is a way to do this, please let me know.
... View more
04-07-2015
03:58 PM
|
1
|
0
|
2474
|
POST
|
I have added the ESRI Maps web part to my page. I start editing the page, then start editing the web part. I will then log in to AGOL and add data from my organization. I can click "Save and continue editing" on my page, but every time I click "OK" or "Apply" on the web part edits, the map reloads to the AGOL log in screen and I've lose everything. I am also having issues with HTTPS. The web part will not load as long as HTTPS is active.
... View more
10-17-2014
03:44 PM
|
0
|
0
|
3791
|
Title | Kudos | Posted |
---|---|---|
1 | 04-07-2015 03:58 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|