Mercateo / spring-security-jwt

JWT support for spring-security
Apache License 2.0
30 stars 16 forks source link

rethrow JWTDecodeException as InvalidTokenException #10

Closed wtobi closed 6 years ago

wtobi commented 6 years ago

If you send e.g. "Bearer ggg" as token JWTDecodeException is thrown and propagated all through the system (it's a RuntimeException). Catching it and throwing an InvalidTokenException is better IMHO.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.4%) to 86.902% when pulling bfb14d547734e5e31891cc737fd3b0cdaae26386 on wtobi:master into ff24bd0f4256647d555bfb423309da72f4e47dbe on Mercateo:master.

wuan commented 6 years ago

Thanks!