on 08-09-2007 10:43 PM
We have a Java app running on Web AS Java 7. Right now Authentication is handled by a login stack so by the time a user gets to the app they have already been authenticated. So how can our application see their username?
Right now we use sapsecu.dll to extract their username from their SAP Logon Ticket. Is there a way to get their username with pure java (no external dlls)?
If you are trying to get the user from a Servlet you can use
IUser user = UMFactory.getAuthenticator().getLoggedInUser(httprequest,httpresponse);
other wise
IUser user = UMFactory.getAuthenticator().getLoggedInUser();
String userName = user.getFirstName() + " " + user.getLastName();
You can use various methods available to get other user details.
Regards
Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Java app is what? servlet, ejb?
In case of servlet you can use
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
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.