Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropwizard-shiro not compatible with drowizard 2.0.0 #15

Open
pogopaule opened this issue Dec 30, 2019 · 4 comments
Open

dropwizard-shiro not compatible with drowizard 2.0.0 #15

pogopaule opened this issue Dec 30, 2019 · 4 comments

Comments

@pogopaule
Copy link

This project is not compatible with dropwizard 2.0.0. The following exception is thrown
java.lang.ClassNotFoundException: org.glassfish.jersey.server.spi.internal.ValueFactoryProvider.

@silb
Copy link
Owner

silb commented Feb 8, 2020

See silb/shiro-jersey#11 for potential workarounds.

@bucht
Copy link

bucht commented Feb 17, 2020

I created a small rewrite at work to get things working for us in Dropwizard 2.0 with Shiro 1.5, that might be helpful if someone wants to do something similar. Basically simplifying the code by using classes available in Dropwizard-auth and Shiro and some general code refactoring.

There's an issue right now with Shiro 1.5.0 and setting the filter url pattern to "/", due to a bug in Shiro's path normalisation. A fix for that has been merged and should be in 1.5.1 according to apache/shiro#201

It might be too simplistic for some use cases, but we're basically only interested in setting up a standard filter with annotation bindings for the Pricipal towards a database backed realm.

@silb
Copy link
Owner

silb commented Feb 17, 2020

There is a working snapshot version for Dropwizard 2.0 in dropwizard-2.0 which again requires a snapshot artifact built from https://github.com/silb/shiro-jersey/tree/jersey-2.26.

@Gaff
Copy link

Gaff commented Dec 14, 2020

@silb any chance of a release to maven central?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants