Quantcast
Channel: SCN: Message List - SAP Single Sign-On
Viewing all articles
Browse latest Browse all 2732

Re: Access user information from SAP Logon Ticket Java Web Application

$
0
0

Hi Bradley,

 

please check this presentation in the user management functions of the SAP J2EE engine.

You will need to include the UME library (com.sap.security.api.sda)


You usethe functionsprovidedbytheUMFactory
There are twoavailablefunctions:

    • getLoggedInUser()
    • forceLoggedInUser()

UsegetLoggedInUser()toget an alreadylogged on user‘s ID.

Iftheuseris not yetlogged on, useforceLoggedInUser()to show the logonscreen.

IUseruser =
   
UMFactory.getAuthenticator().getLoggedInUser(request, response);
if (null == user) {
   
UMFactory.getAuthenticator().forceLoggedInUser(request, response);
 
return;
}

 

For WebDynpro, you can find an example here.

 

For a portal environment, you can find some info in the presentation mentioned above.

 

Kind regards,

Patrick


Viewing all articles
Browse latest Browse all 2732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>