Re: doubts about tomcat form based authentication

2009-10-20 Thread Nirvann


Curtis Garman wrote:
 
 I'm interested in what others have to say about this too...for
 instance there is no provision for disabling an account either...if
 the account exists you can login with it.
 
 I'm not sure I understand the second part of your question about
 authorization...do yo mean authorization or authentication?...if you
 really mean authentication, it sounds to me like you don't have
 something set up correctly...you should be getting a 403 access denied
 in both firefox and ie if login fails. Authorization has nothing to do
 with form based authentication and would be handled by the container
 based on the roles you create.
 
 Curtis
 

I mean't authorization. Consider a scenario as follows. There are two users,
admin and user. Consider two pages adminPage.jsp and userPage.jsp. Admin has
rights to both the pages but user can access only userPage.jsp. Lets assume
that the user logs in as user (not admin) and accesses userPage.jsp. It is
fine upto this point because user has access to userPage.jsp. But what
happens if the user tries to access adminPage.jsp for which he is not
authorized. As you have indicated it should fail through 403 access denied.
But, I am getting HTTP 404 - File not found in IE and blank page in
Mozilla. 

-- 
View this message in context: 
http://www.nabble.com/doubts-about-tomcat-form-based-authentication-tp25970503p25975955.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: doubts about tomcat form based authentication

2009-10-20 Thread Nirvann

Sorry guys to have bothered you with my silly mistake. Actually, I had
configured 403 error page in web.xml file but the page was not at proper
location. Hence I was getting 404 file not found. Now I can access the role
error page for authorization error. Thanks a lot for all your insights.

regards,
nirvan.
-- 
View this message in context: 
http://www.nabble.com/doubts-about-tomcat-form-based-authentication-tp25970503p25984106.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org