[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
tcherel wrote : This is definitely the way to make it work to get the custom principal in the session code, but I did not think that this was also working for the web container. | Which JBoss version are you using? | | Thomas I'm using JBoss AS 4.0.2 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887737#3887737 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887737 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
The custom principal recepie works in both the ejb and web container provided that the container is doing the authentication. http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingCustomPrincpalsWith View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887444#3887444 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887444 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
I do not believe this is possible at this point with JBoss. You can have a cusotm principal in your EJB code (custom principal returned by EJBContext.getCallerPrincipal), but not in the web container code. See http://www.jboss.org/index.html?module=bbop=viewtopicp=3878558 for more details, especially the last few posts of the thread referencing the http://jira.jboss.com/jira/browse/JBAS-1802 JIRA issue which is what you need in order to have your own custom principal in the web container. Thomas View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887243#3887243 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887243 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
You can probably workaround the problem by creating a servlet interceptor or tomcat valve to collect the user data you need and cache it as part of the HTTP session. Not as elegant as the custom principal, I think, but that should work. Thomas View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887246#3887246 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887246 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
We've solved the problem by creating java.security.acl.group with name CallerPrincipal and value MyPrincipal instance: Group callerPrincipal = new SimpleGroup(CallerPrincipal); callerPrincipal.addMember(caller); So, currently getUserPrincipal() of HttpServletRequest returns MyPrincipal instance as it required... Anyway thanks a lot for answers! Regards, Alex Chesnokov View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887266#3887266 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887266 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: How to use my own Principal class?
This is definitely the way to make it work to get the custom principal in the session code, but I did not think that this was also working for the web container. Which JBoss version are you using? Thomas View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3887283#3887283 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887283 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user