teracyhq / httpie-jwt-auth

JWTAuth (JSON Web Tokens) auth plugin for HTTPie
BSD 3-Clause "New" or "Revised" License
173 stars 13 forks source link

allow to override default auth prefix `Bearer` with env var #5

Closed hoatle closed 8 years ago

hoatle commented 9 years ago

as I'm working on a client project that support JWT with auth prefix of JWT not Bearer, we should allow override this (by environment var JWT_AUTH_PREFIX or an optional option --auth-prefix=XXX)

optional option should override environment var

If not setting, default auth prefix Bearer should be used.

hoatle commented 9 years ago

need to update README for this

hoatle commented 8 years ago

support this: http://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication