SpringSecurity

spring securityのjdbcDaoImplのload

JdbcDaoImpl.loadUsersByUsernameメソッドの中でユーザをDBから取得しているようです なのでこのクラスを継承したクラスをjdbcUserServiceとしてxmlで定義してあげればよいもようログインはできるようになったけど、 social系との連携がうまくいかない。 ま…

spring socialとspring security連携

この辺りだ、やりたかったのは、 http://harmonicdevelopment.tumblr.com/post/13613051804/adding-spring-social-to-a-spring-mvc-and-spring

カスタムのloginページ

spring securityのxmlコンフィグを以下のように直しました。 これで、/loginのControllerからViewが表示されます。僕がつかっているmvcのcontrollerでは、tilesが設定してあるので、 tilesがそのまま利用できました。 controller @Controller public class A…

spring web flow と spring security を合わせるとこんな設定になる

spring-web-flowのcontext.xml spring security の xmlの中身 flow定義のxmlの中にロールがROLE_USERとして