Skip to Content
0
Former Member
Mar 26, 2009 at 08:42 AM

after integration with portal, how can I get logon user id?

32 Views

Hi, guru:

before integration with portal, it works fine. I use the follow method to get logon user id on JSP.

MetaBusinessObjectManager mbom = userSessionData.getMBOM();

UserBaseAware userBaseAware =

(UserBaseAware)mbom.getBOMByType(UserBaseAware.class);

UserBase userBase = userBaseAware.getUserBase();

String userId = userBase.getUserId();

and we recently integration with portal, and portal use single sign on, the problem is that I no longer can get user Id from the method any more, I have no idea what happened.

I saw some posts talking about UME, and I have not configured anything in this area, so the default is no UME configured, right?

back to my question, is there any way I can get this logon userid?

I also try this

IUser user = UMFactory.getAuthenticator().getLoggedInUser(request, response); // HttpServletRequest request, HttpServletResponse response

String userid = user. getUniqueID();

but the userid returned is like j2ee_user..., which is not informative.

anyone can help?

Cheers,

Eric