cli icon indicating copy to clipboard operation
cli copied to clipboard

Support different keywords for Bearer authentication

Open eraxeg opened this issue 3 years ago • 1 comments

Checklist

  • [x] I've searched for similar feature requests.

Enhancement request

Adding support for different keywords than "Bearer" for Bearer authentication.


Problem it solves

The default keyword in Falcon and Django REST Framework is "Token" instead of "Bearer". In HTTPie the only possible keyword is Bearer. Due to this it is not possible to use HTTPie with projects which does not explicitly use the keyword Bearer.

eraxeg avatar Aug 19 '22 20:08 eraxeg

Due to this it is not possible to use HTTPie with projects which does not explicitly use the keyword Bearer.

I think it's still possible but you might have to tweak the syntax a little:

$ https pie.dev/bearer authorization:'Token ${TOKEN}'

pongstr avatar Nov 30 '22 21:11 pongstr