x
login Signup

REST call fails using ElectricCommander REST plugin when a Bearer token is set in the Authorization header

My rest call fails with HTTP error when I’m trying to use Authorization header with Bearer token in EC:REST plugin settings. Settings sample:


Configuration: MyTestConfing
Path URL: /api/admin/indexes
Content Type: application/json
Headers: Content-Type: application/json 
Authorization: Bearer AbCdEf123456

avatar image By alexf 15 asked May 29 at 04:21 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

Our engineering is working on EC-Rest plugin improvement and will add “Bearer Access Token” support for Authorization in next versions. As a workaround, I highly recommend you to use curl in a step context as REST calls carrier. A sample of curl request using your settings:


curl -k -X GET "https://server_name/api/admin/indexes" --header "Content-Type: application/json" --header "Authorization: Bearer your_token"

avatar image By afil 0 answered May 30 at 01:43 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.