Setting up a database realm for role based security

By dave on March 22, 2015

Following on from Setting up role based security in tomcat, we now switch from using a memory realm to one backed by a database. Memory realms are great for testing but in any real application is would probably not be acceptable. Normally user credentials are stored in a database, so for this purpose there is a realm based on a datasource. Depending on your view of things, you will either edit server.

Using tomcat role based security in JSP"s or servlets

By dave on March 22, 2015

Following on from Setting up role based security in tomcat we now look at accessing the realm security information from code. Although tomcat takes care of authenticating users at the right time, there are still times when we need to programatically access the credential information. For example the following snippet from userProfile.jsp is a mixed mode page In that anyone can view the page, but some users with manager role see more information.

Setting up role based security in tomcat

By dave on July 1, 2012

Tomcat and most other Java JEE servers support role based security, form based authentication and SSL. These technologies are integrated into your web application declaratively. At first the configuration for this security can look a little daughnting but once understood it is actually not difficult to configure. This article is split over several pages and requires an understanding of tomcat and how a JEE webapp is structured. Most of the article is structured towards tomcat, but if you use another application server, many of the concepts are the same.

Tomcat and circular references to hosts

By dave on June 30, 2012

I had an interesting issue with tomcat today on my VPS. I added a new domain to my tomcat server configuration, and accidentally caused a circular reference in the alias section of one virtual host to another virtual host. By this I mean that one virtual host configuration had the same alias as in another host. I am assuming this made some web applications load up more than once, and therefore the server use more memory than would normally be required.

tcMenu for Arduino

This site uses cookies to analyse traffic, and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.

Send a message
X

Please use the forum for help with UI & libraries.

This message will be securely transmitted to our servers.