API should accept RFC7235 authorization header
viceice opened this issue · comments
Michael Kriese commented
Currently HEX API requires authorization: <token>
as api header, it should support normal Bearer
token as other API's will do.
eg
curl --include \
--header "Accept: application/json" \
--header "Authorization: Bearer <token>" \
'https://private-anon-d3fb121a9d-hexpm.apiary-mock.com/packages?sort=&search='
Eric Meadows-Jönsson commented
Agreed. We need to implement it in a backwards compatible way on https://github.com/hexpm/hexpm first then the specifications can be updated.
Eric Meadows-Jönsson commented
Closing this since it requires functionality change before the specs can be updated.