This content has been marked as final.
Show 2 replies
-
1. Re: j_security_check authentication - uppercase user name =
starksm64 Feb 23, 2006 12:26 PM (in response to jeff_porter)This says the user is valid but does not have permission to access the resource.
-
2. Re: j_security_check authentication - uppercase user name =
jeff_porter Feb 23, 2006 12:33 PM (in response to jeff_porter)Hey Scott,
Thanks for the reply!
I've just solved this myself. :-D
Now a happy bunny.
Solved by...
Adding a merge file for the WAR.File: error-pages.xml Contents: ... <error-page > <error-code >403</error-code > <location >/jsp/invalidlogin.jsp</location > </error-page>
Then created a file called "invalidlogin.jsp"Filename: invalidlogin.jsp Contents: <%session.invalidate();%> <html><META HTTP-EQUIV=Refresh CONTENT="0;URL=taskList.jsf"/></html>
taskList.jsf is the where index.html redirects to.
So that if you are authenticated, but not authorized (i.e. putting username in capitals), then you get a 403.
The above changes now redirect you back to the login page.