ToastShaman / dropwizard-auth-jwt

A Dropwizard authentication filter using JSON Web Token (JWT)
Apache License 2.0
116 stars 50 forks source link

Detect when token has been expired #32

Closed situokko closed 6 years ago

situokko commented 6 years ago

I was using 0.8.x before and there you threw specific TokenExpiredException, however now with 0.5.5 Jose4J this information is hidden within the private fields of InvalidJwtException.

Jose4J 0.6.0 (released week ago) exposes this information via InvalidJwtException.hasExpired(). Would it be possible to change dropwizard-auth-jwt to depend on that 0.6.0 version?

https://bitbucket.org/b_c/jose4j/issues/76/provide-programmatic-access-to-specific

situokko commented 6 years ago

I have fixed it here: https://github.com/ToastShaman/dropwizard-auth-jwt/pull/33

ToastShaman commented 6 years ago

I've merged #33