cli
cli copied to clipboard
Support different keywords for Bearer authentication
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.
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}'