Forums Register Login

Server (Tomcat) Managed Role-Based Authentication

+Pie Number of slices to send: Send
I am using the Tomcat 5.0.27. In order to use server managed "role-based" authentication, we supply the server with two tables. One of the tables containes userID and password, and the other tables contains userID and userRole (a person can have more than one role).

My difficulty stems from the tables are structured in my database. I do have a table that contains userID and password; however, I do not have a table that contains userID and userRole. In order to know a person's role, I have to navigate from one table to another using foreign key and primary key.

Is there a way to tell the server to navigate from one table to another to find a person's role? Or we "must" create a table that contains userID and userRole for us to use the isUserInRole() method for security check?
+Pie Number of slices to send: Send
I thought isUserInRole() was used to read the security roles defined in the web.xml, not from a database?

Mark
+Pie Number of slices to send: Send
But, we have to map each user to his/her role somewhere. And it is in the server.xml file.
You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 904 times.
Similar Threads
Serving content based on authenticated roles
database authentication
Using DatabaseServerLoginModule of JBoss
WAS5.0 realm similar to jdbcrealm in tomcat
Authenticating Users
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:21:54.