nickredmark / ooth

User identity/authentication/accounts management microservice for node.js
https://nmaro.github.io/ooth/
MIT License
605 stars 65 forks source link

ooth-jwt: add token location option #81

Closed artisteinconnu closed 5 years ago

artisteinconnu commented 5 years ago

Add a tokenLocation option in ooth-jwt to specify where to read token from. Option can be 'header', 'body' or 'both'. Default to 'both', which is the current behavior.

Suggested value is 'header', as using 'both' or 'body' conflict with some ooth-local methods