olehlong / jwtd

D implementation of JSON Web Token.
MIT License
30 stars 13 forks source link

Added overload that takes key from callback #15

Closed lionello closed 7 years ago

lionello commented 7 years ago

Often times the decode key depends on the contents of the JWT. This patch allows you to provide a callback to decode, which receives the decoded JOSE headers. Typically the headers provide a hint to which client/key has signed the token.