hexpm / specifications

Specifications for using and implementing Hex protocols

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API should accept RFC7235 authorization header

viceice opened this issue · comments

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

Agreed. We need to implement it in a backwards compatible way on https://github.com/hexpm/hexpm first then the specifications can be updated.

Closing this since it requires functionality change before the specs can be updated.