ToastShaman / dropwizard-auth-jwt

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

Token expiry cannot be detected by application anymore #34

Open situokko opened 7 years ago

situokko commented 7 years ago

As JwtAuthFilter was changed in 0.9->1.0, the Authenticator no more get called if token has been expired.

In my app I handle it as a "soft" error, and provide user easy path to re-authenticate. However now as the filter already detects it and directly throws InvalidJwtException => WebApplicationException, and hides the fact that it was only expired. There is no way in intervene.

ToastShaman commented 7 years ago

Is this resolved with #33 ?