Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a security filter/how to create a user principle

 
Johnny Gara
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Offhand I don't know of a way to achieve this. What is the purpose of doing so?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic