Closed moezubair closed 7 years ago
What version of dropwizard-auth-jwt are you using? The example you posted is for the upcoming 1.0 release of Dropwizard. If you are using 0.9.x look at this example.
environment.jersey().register(new AuthDynamicFeature(
new JWTAuthFilter.Builder<MyUser>()
.setTokenParser(tokenParser)
.setTokenVerifier(tokenVerifier)
.setRealm("realm")
.setPrefix("Bearer")
.setAuthenticator(new ExampleAuthenticator())
.buildAuthFilter()));
Closing this issue. Please re-open if the issue still persists.
Hello, I am geting the following error:
when I try to:
I am using your example, but have my own user (called simple principal) any idea why this is happening?