requests-arcgis-auth
requests-arcgis-auth copied to clipboard
Authentication handler for using Esri ArcGIS for Server and Portal (ArcGIS Online) Token Authentication with Python Requests
On the first request to a portal with SAML Authentication, it receives a response with a refresh_token and an access_token. This is stored in the self._token_data field. When the access...
**Problem Statement:** When downloading a large payload, there is a significant delay due to the response hook. The code has a 'response hook' registered where it scans the response for...
The authentication handler attempts to check the response for an expired token to re-generate if needed. If the response content is large, python may throw an "OverflowError" which suggests a...
This code base was developed in python 2.7 and mostly executed from an Esri ArcGIS Desktop (arccatalog/arcmap) or ArcGIS Server (10.3+) environment. This has not been developed to work with...
The ArcGISServerAuth object supports a username/password as optional parameters... Only need to be supplied if the site is token authentication. Could query the site "/arcgis/rest/info" to determine if its is...
Possibly just pass access_token and refresh_token to 'private' attributes of Esri ArcGIS API for Python https://developers.arcgis.com/python/
The auth handler only passes username,password, and 'client=requestip' when generating a token. Possible future TODO - Allow a developer to specify the get token parameters explicitly (client, referer, IP, Expiration)...
Will allow for better integration to existing code or other API's.
While attempting authenticated access to an SOE endpoint setup with web-tier security (Negotiate), the ArcGISServerAuth handler failed to authenticate with kerberos. The auth handler fell back to NTLM but the...
Currently the ArcGISPortalTokenAuth class uses the deprecated 'gettoken' operation to acquire the authorization token. The newer more prefered workflow is to use the OAuth2 approach to acquire the token. There...