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

Send token in X-Esri-Authentication header for GET requests #820

Open
dbouwman opened this issue Mar 29, 2021 · 2 comments
Open

Send token in X-Esri-Authentication header for GET requests #820

dbouwman opened this issue Mar 29, 2021 · 2 comments

Comments

@dbouwman
Copy link
Member

dbouwman commented Mar 29, 2021

Still awaiting information re: scope of requests that we can send the token in a header for, but the bottom line is that the AGO portal API supports sending the token via headers for GET requests.

Clarifications requested:

  • Is this supported only on GET’s or on all requests? A: All Requests for Portal API
  • Is this supported for Enterprise as well as AGO? A: Yes
  • Is this supported for Hosted Feature Server requests? no answer yet
  • Is this supported for ArcGIS Server requests? if so, what version did it start at? no answer yet
  • Is there a confluence page/??? For tracking these sort of API changes? no answer yet

Until we know this header is supported in Server + Hosted Services, we need a means to only apply this on requests originating from arcgis-rest-portal package. We could pass IRequestOptions.headers for those calls, however that breaks the current separation of concerns where request deals w/ session & tokens, and the individual functions remain ignorant of those details. Perhaps we can check if the request url contains the session.portal and if so, append the header... Research needed...

@jgravois
Copy link
Contributor

👋 i wouldn't call it definitive, but i found some doc on X-Esri-Authentication back in the day.

#290 (comment)

@dbouwman
Copy link
Member Author

Hey @jgravois! That's great!

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