Hi,
I am a beginner in spring roo and i want to create a login page for the application. Can someone please give a step by step guide to create a login.
Than you in advance.
Hi,
I am a beginner in spring roo and i want to create a login page for the application. Can someone please give a step by step guide to create a login.
Than you in advance.
I somehow managed to do this. But when i start the application it automatically goes to the homepage instead of the login page. Is there a way to direct the application to login page automatically withput explicitly typing the url???
Validate at file:
src/main/resources/META-INF/spring/applicationContext-security.xml
You have in last intercept url position:
<intercept-url access="isAuthenticated()" pattern="/**"/>
Mario Martínez Sánchez
Project Manager & Software Architect
--------------------------
Disid Technologies S.L.
http://www.disid.com
--------------------------
gvNIX
http://gvnix.googlecode.com
http://www.gvnix.org
Hi mmartinez,
Thanx for replying. I changed the applicationContext-security.xml file. Now it gives an error saying "The webpage at http://localhost:8080/asm/login has resulted in too many redirects."
can you think of any reason?
thanx
got it sorted out. Anyway thanx alot for your help. I got the job done.
Thanx
Error 404...
The page dont exist.
Got it...chaged the applicationcontextsecurity.xml as follows
...................
<http auto-config="true" use-expressions="true">
<form-login login-processing-url="/resources/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t" />
<logout logout-url="/resources/j_spring_security_logout" />
<!-- Configure these elements to secure URIs in your application -->
<intercept-url pattern="/choices/**" access="hasRole('ROLE_ADMIN')" />
<intercept-url pattern="/authsources/**" access="isAuthenticated()" />
<intercept-url pattern="/login/**" access="permitAll" />
<intercept-url pattern="/**" access="isAuthenticated()" />
</http>
...........................
This made the sense for me...