on 10-31-2006 9:47 AM
Hi there,
Does anybody know how to access the user id authenticated on a WD application running on the WAS?
Note that I am not running the WD application on the portal but on the WAS.
Thank you,
Olivier.
Hi,
What do you mean running the WD application not on the portal but on the WAS? Is the "sap.authentication" property of the application set to true and you are running the stand-alone application? In that case:
try {
IUser u = WDClientUser.getCurrentUser().getSAPUser();
wdComponentAPI.getMessageManager().reportSuccess(u.getUid());
} catch (WDUMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Satyajit,
By running WD application not in the portal I mean my WD application is running on a WAS04s alone. The SAP EP is not installed on this WAS.
I already tried the code you suggested but I did not get the logged user. When I test the isAnonymousUser() method, I always get false even if my WD application is configured for user authentification.
I went through the different postings on this forum but they are all related to the SAP EP. The code proposals do not work in my case...
Message was edited by: BvD-it Services
Message was edited by: BvD-it Services
Message was edited by: BvD-it Services
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.