I have a problem with Spring Security custom login form. I think I'm following the API example but the login just don't work. Here's my simple login page (I'm using Struts2):
And here is my application context:
Once I hit the submit the page just gets reloaded. I tried this even without Struts2 tags and with plain HTML. I don't know what I'm doing wrong here.
It looks like you are securing your login page. So you have to be logged in to get to the login page.
<intercept-url pattern="/SpringLogin" requires-channel="https" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
<form-login login-page="/SpringLogin"/> (It's a Struts2 action which brings up the login form above)
Basically the "IS_AUTHENTICATED_ANONYMOUSLY" means they have to be logged in.
Mark Spritzler wrote:It looks like you are securing your login page. So you have to be logged in to get to the login page.
<intercept-url pattern="/SpringLogin" requires-channel="https" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
<form-login login-page="/SpringLogin"/> (It's a Struts2 action which brings up the login form above)
Basically the "IS_AUTHENTICATED_ANONYMOUSLY" means they have to be logged in.
Mark
Thank you Mark. You're right I set the filters to "none" and it worked. But How can I achieve the secure channel for that URL?