ToastShaman / dropwizard-auth-jwt

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

fix example application #10

Closed grandynguyen closed 9 years ago

grandynguyen commented 9 years ago

ExampleAuthenticator is looking for "good-guy" in the subject field, but we were putting it in a field with the key "principal".

MartinSahlen commented 9 years ago

Yes, this is indeed correct. I actually discovered this when looking at the DW8 version of this. Good catch!