Question regarding how to submit authorization header for REST API generateToken request.

485
0
07-10-2020 12:16 PM
JamesMadden1
Occasional Contributor

I am working on acquiring a token from my Portal's generateToken endpoint (https://<host>:<port>/arcgis/sharing/rest/generateToken).  In order to get the token I need to submit my POST request over HTTPS.  I've followed ESRI's online instructions for submitting the username and password in the body of the request and that works but I am wondering if it would be possible to put the creds in an authorization header instead.  The creds belong to a built in account.  I've tried the standard Basic Auth and X-ESRI-Authorization Basic headers.  Neither work.  A link to the online instructions I've been following is provided below.

Generate Token—ArcGIS REST API | ArcGIS for Developers    

Tags (1)
0 Kudos
0 Replies