cancel
Showing results for 
Search instead for 
Did you mean: 

UME question regarding getLoggedInUser()

Former Member
0 Kudos

HI all ,

I am trying to implement access permission in my project Using UME

Am using the function below to force the user to log in

UMFactory.getAuthenticator().forceLoggedInUser(request,response); 

in my servlet code.

After that I am trying to get the currently logged in user using

UMFactory.getAuthenticator().getLoggedInUser();

(this function, I am calling it in a web service function which is a separate project)

But this function is returning the currently logged in user as Guest

and not the user who is logged in.

Any help?

Thanks,

talimeren

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Mrutyunjaya thanks for your reply,

I guess you weren't able to understand my problem clearly.

Actually I have a servlet running which forces a user to login using the

UMFactory.getAuthenticator().getLoggedInUser(request,response); function.

and after that it calls a web service function which in turn calls the

IUser user=UMFactory.getAuthenticator().getLoggedInUser(); function.

The problem is that the getLoggedInUser() function returns the logged in user as

Guest. I guess the function getLoggedInUser() (without the parameters request,response )returns the default user which is Guest.(came across this info. a few mins back)

Is there any other way to get the currect logged in user.(In ejb we can use the SessionContext to get the username )

thanks,

Talimeren