Example of Dropwizard, Spring DI and Spring Security integration

872 views
Skip to first unread message

Jacek Furmankiewicz

unread,
Apr 25, 2013, 11:39:21 AM4/25/13
to dropwiz...@googlegroups.com
I had a chance to give a presentation on this topic last night at the Houston JUG.

Here's is the presentation together with a sample app:

https://github.com/jacek99/dropwizard-spring-di-security-onejar-example

Hope this helps all of you who need to integrate Dropwizard and Spring together.

Dropwizard rocks!

Cheers
Jacek
Dropwizard_Spring.pdf

Rakesh Waghela

unread,
Apr 26, 2013, 3:40:02 AM4/26/13
to dropwiz...@googlegroups.com
pdf not valid ! please reattach !

Piero Ottuzzi

unread,
Apr 26, 2013, 4:09:10 AM4/26/13
to dropwiz...@googlegroups.com
On Friday, April 26, 2013 9:40:02 AM UTC+2, Rakesh Waghela wrote:
pdf not valid ! please reattach !

Hi,

   you are right: the attached PDF is not valid but you can find it in github repo[1] 

Bye
Piero

Sergey Polovko

unread,
Apr 26, 2013, 5:19:01 AM4/26/13
to dropwiz...@googlegroups.com
Hi Jacek,

Thank you for your presentation!
Why do you prefer to use Spring Security instead of dropwizard-auth with Basic Http Auth or OAuth 2.0?


2013/4/26 Piero Ottuzzi <ott...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jacek Furmankiewicz

unread,
Apr 29, 2013, 7:11:48 PM4/29/13
to dropwiz...@googlegroups.com
Well, if you are using Spring you may as well use the whole stack, since it is so mature.

Also Spring Security gives you not just HTTP, but method-level security as well via @Secured annotations.

Also, I am not too crazy about the Dropwizard requirement of having to explicitly code an @Auth object into every REST method.
It seems that a careless programmer could easily forget about it and leave an unsecured method open.

The filter-based Spring Security approach ensures every method is equally protected IMHO
Reply all
Reply to author
Forward
0 new messages