I'm trying to set up my oauth provider using the sparklr2 example.
it's working fine but now i have to customize the login form controller.
this is what i have (http://bit.ly/OJuNYI)
there's no @Controller with an @RequestMapping set to "login.do" so it's kinda working auto-magically, so to speak.Code:<http access-denied-page="/login.jsp?authorization_error=true" disable-url-rewriting="true" xmlns="http://www.springframework.org/schema/security"> <intercept-url pattern="/oauth/**" access="ROLE_USER" /> <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/> <form-login authentication-failure-url="/login.jsp?authentication_error=true" default-target-url="/index.jsp" login-page="/login.jsp" login-processing-url="/login.do" /> <logout logout-success-url="/index.jsp" logout-url="/logout.do" /> <anonymous /> </http>
I decided I was just gonna create my own LoginController that would do my things connected to /login url.
So i have now
<form-login authentication-failure-url="/login?authentication_error=true"
default-target-url="/index.jsp" login-page="/login"
login-processing-url="/login.do" />
and later
<mvc:annotation-driven />
here's the stupid controller
@RequestMapping(value = "/login", method = RequestMethod.GET)
public String login() throws Exception {
return "mylogin";
}
it's not working.
Log correctly says RequestMappingHandlerMapping.getHandlerInternal Did not find handler method for [/login]
what am i missing?


Reply With Quote
