httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.74k stars 3.68k forks source link

Support different keywords for Bearer authentication #1428

Open eraxeg opened 1 year ago

eraxeg commented 1 year ago

Checklist


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.

pongstr commented 1 year ago

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}'