-
1. Re: How to know current logged user
juha Nov 19, 2003 4:11 AM (in response to dzerzhinsky)EJBContext.getCallerPrincipal() ?
-- Juha -
2. Re: How to know current logged user
dzerzhinsky Nov 19, 2003 7:59 AM (in response to dzerzhinsky)It's OK, but I could recieve only name of principal (interface Principal defines only one info method getName()) but I need also some custom information about current user. Maybe I must provide some implementation for Principal interface and then make type cast after getCallerPrincipal(), I don't know.
I think that this task stands realy offen for developers but I couldn't find answer. -
3. Re: How to know current logged user
juha Nov 19, 2003 8:18 AM (in response to dzerzhinsky)Depending on what that extra information is, you need to write your own login module that populates the thread's subject with the extra principals and then request the subject through org.jboss.security.SecurityAssociation.
-- Juha -
4. Re: How to know current logged user
dzerzhinsky Nov 19, 2003 8:29 AM (in response to dzerzhinsky)Juha, I realy appreciate for your help. Could you give me link to some example code to show me how to start, please.
Oleg F. Yavorsky -
5. Re: How to know current logged user
juha Nov 19, 2003 8:34 AM (in response to dzerzhinsky)I recommed the security section in JBoss Admin & Dev. guide.
-- Juha -
6. Re: How to know current logged user
dzerzhinsky Nov 19, 2003 8:53 AM (in response to dzerzhinsky)Thank you. As I understand I must go to my capital and buy this book (in my city we don't have good book shops with realy helpfull literature). But I think it's worth money