От: Rodrigue Le Gall <rodrigue.le-gall@xxxxxxxx>
Тема: [exoplatform] How to get the current username and JAAS Subject?
Кому: exoplatform@xxxxxxx
Дата: Понедельник, 4 август 2008, 18:47
Hi community,
I have updated my eXo source code and I found some issues due to code
refactoring.
Before my update I get the current JAAS Subject with:
org.exoplatform.services.organization.auth.AuthenticationService.getCurrentIdentity().getSubject();
And current logged user with:
org.exoplatform.services.organization.auth.AuthenticationService.getCurrentIdentity().getUsername();
So my question is:
how to get actually the current logged JAAS Subject
and username?
Hi, Rodrigue.
Subject subject = (Subject) ConversationState.getCurrent().getAttribute(ConversationState.SUBJECT);
Regards,
Andrey.
Thanks for your help
--
Rodrigue, Le Gall
Portal Technologies' Leader
BULL R&D , BPM
Bull, Architect of an Open World TM
Phone: +33(0)4 7629 7464
email: rodrigue.le-gall@xxxxxxxx
http://www.bull.com
*Orchestra*, The BPEL open source project: http://orchestra.objectweb.org
*Bonita*, The XPDL open source project: http://bonita.objectweb.org
This e-mail contains material that is confidential for the sole use of the
intended recipient. Any review, reliance or distribution by others or forwarding
without express permission is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
--
You receive
this message as a subscriber of the exoplatform@xxxxxxx mailing
list.
To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxx
For general help: mailto:sympa@xxxxxxx?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws