This week's book giveaway is in the
We're giving away four copies of
Node.js in Action
and have Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Using Realms for access controll with multiple roles
Tor Henning Post
Joined: Nov 14, 2003
Oct 05, 2006 05:06:00
I have a Webapp where i have pages ment for users and pages ment for administrators. Is there a way i can configure
realms to perform access controll on pages based on roles in the same webapp.
e.g i want too have an admin page and only users with the role admin can access this page. all other pages can be accessed by users with role user.
So far i can only figure out how to specify one set of resources.
<security-constraint> <web-resource-collection> <web-resource-name>test1</web-resource-name> <url-pattern>admin.jsp</url-pattern> </web-resource-collection> <auth-constraint> <role-name>ADMIN</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>login</realm-name> </login-config> <security-role> <description>system administrators</description> <role-name>ADMIN</role-name> </security-role> <security-role> <description>User</description> <role-name>USER</role-name> </security-role>
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Using Realms for access controll with multiple roles
Form Authentication not working
access control with realm db
Tomcat authentication and RACF
Tomcat Password Protection
Tomcat BASIC Authentication Problem.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014