You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Osipov <19...@gmx.net> on 2015/12/14 23:29:34 UTC

How to use org.apache.catalina.Catalina#findRoleMapping properly?

Hello,

I'd like to perform role mapping from technical role names spit out by our realm
to application specific ones like Admin, Translator, Manager, etc. Though, the
aforementioned method should do it but it isn't called anywhere in the code.

I am aware of security-role-ref in web.xml but those mappings are servlet-bound which
makes me to repeat myself.

My basic idea is to map them with a properties file for web.xml and request#isUserInRole
as an opaque information to the application. I actually had the very same idea as in [1]
but I'd like to avoid the overhead.

Am I missing something? How can I make use of it without reinventing the wheel?

[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=55477

Thanks,

Michael

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