Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portal identity delegation from JS into Python #109

Closed
fujkani opened this issue Jun 21, 2017 · 1 comment
Closed

Portal identity delegation from JS into Python #109

fujkani opened this issue Jun 21, 2017 · 1 comment

Comments

@fujkani
Copy link

fujkani commented Jun 21, 2017

Below is more of a feature request than an issue:

I have a JS app that does a user login into AGOL (OAuth). If successful I want to call a python script that leverages Esri's ArcGIS Python API and manipulates content in the AGOL account. Problem is that the python is out of context so it needs to authenticate to AGOL too. I obviously don't want another login page and especially not a custom one, so how would I pass that security context over to the python code?

One approach I thought should have worked was in JS to grab the access token and then use that in the Python script. Problem is that the GIS class does not take a token as an argument:

class arcgis.gis.GIS(url=None, username=None, password=None, key_file=None, cert_file=None, verify_cert=True, set_active=True)

Any ideas how this might be accomplished?

Thanks.

@rohitgeo
Copy link
Contributor

The GIS class now accepts a token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants