aspose file tools*
The moose likes Tomcat and the fly likes creating a security filter/how to create a user principle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "creating a security filter/how to create a user principle" Watch "creating a security filter/how to create a user principle" New topic
Author

creating a security filter/how to create a user principle

Johnny Gara
Ranch Hand

Joined: Mar 09, 2007
Posts: 43
Not sure if this should be in the servlet section...

but here goes:

Was wondering how you can create a user principle and bind any given role to that use.

I have a tomcat webapp, and instead of using the tomcat form based login, I was wondering if it's possible to create a simple filter that catches any attempts to access the webapp, and fill the principle in myself. (Yes, I know this is basically what the form based login does...work with me on this ).

Creating the filter is fine, but I'm not entirely sure if you can insert the user principle so that tomcat would recognize it....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Offhand I don't know of a way to achieve this. What is the purpose of doing so?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating a security filter/how to create a user principle
 
Similar Threads
j_security_check Tomcat bad redirection
can i skip a particular path from doFilter
how to redirect to success page in tomcat using its lapd configuration
Filter before login form in FORM based login
Invalid direct reference to form login page