Closed aykaramba closed 1 year ago
You can use :headers
to specify an Authorization header similarly to the cURL's example you wrote.
That worked! The syntax for a token based auth is:
(dex:get "http://10.10.10.10:8000/REST/2.0/queues/all"
:headers '( ("authorization" . "token 123-mytoken-456") )
:verbose t)
Thank you kindly!
I am trying to access my Request Tracker ticketing systems rest api interface with Dexador. I have created a token and I can successfully access the interface with curl as follows:
When I try to use Dexador to do the same thing, I cannot authenticate. Code:
The debugger returns the following authentication error:
The request tracker documentation is here: https://docs.bestpractical.com/rt/5.0.0/RT/REST2.html#Authentication just for reference, I don't expect anyone to read it.
The web interface does not accept the token as a password and I would like to just use the token method for authentication just like in the curl example which suggests the username is not actually required. What might be the correct Dexador syntax to send over the correct authentication arguments when trying to use a token?