tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chema <demablo...@gmail.com>
Subject Re: Limiting access to resources, based on username, not on the user role
Date Fri, 23 Sep 2011 10:49:07 GMT
>
> In your code, you would examine the Principal & see if it had permission
> to proceed.  Then return the resource or an error, accordingly.
>

On my way , I would put "your code that  examine the Principal & see
if it had permission " into a custom realm class.
This custom realm can check only user authorization , no role

This way, you avoid to have to implement a redirection manually

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


Mime
View raw message