[jboss-user] [Security] - 2 security-domains and one EJB

2009-11-24 Thread ndario
I have 2 web applications taht use basicly the same biz logic in EJB module. All three are packaged in the single EAR, like this: app.ear: -a.war -b.war -ejb.jar Since i have two set of users for each web app, I created two security domains and configured each web app to use it's own. How do

[jboss-user] [Security] - Re: JAAS - more data about the user

2009-11-24 Thread ndario
I installed custom principal in my own LoginModule which is my domain Entity, and it looks OK from the web layer. BUT, when i call sessionContext.getCallerPrincipal() from my session bean, I get instance of SimplePrincipal which contains username only. I expected to get my own custom

[jboss-user] [Security] - JAAS - more data about the user

2009-11-21 Thread ndario
So far I developed webapps with User object in session that holds username, full name, role name etc. Now I setup declarative security using LoginModule and all is well but all I have from current user is it's principal which is username only. What can I do if I want to get hold of more user