on 09-27-2007 9:17 AM
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
hi
good
go through this links,hope this would help you to solve your problem
http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/umap/IUserMapping.html
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.