cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE application and portal SSO

0 Kudos

HI all

We have developped a java J2EE application which programmaticly connects with UME via API in order to check user an password.

Now we want if one person login correctly in our J2EE application and go to portal he hasn´t login again.

Any idea?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Julio;

This code may be useful;


       request.setAttribute("j_user", username);
       request.setAttribute("j_password", password);
       request.setAttribute("login_submit", "on");
       ILogonAuthentication ua = UMFactory.getLogonAuthenticator();

       try{
		Subject subj = ua.logon(request, response, "uidpwdlogon" );
		response.sendRedirect("/irj/portal");

       }catch(Exception e) {
		response.sendRedirect("/error.html);
       }
     

Former Member
0 Kudos

Hi,

Try to configure your application to use the Ticket Login Module:

See it to information: http://help.sap.com/saphelp_nw04/helpdata/en/53/695b3ebd564644e10000000a114084/content.htm

0 Kudos

Thanks

do you have any code or idea about that?

How can i generate a cookie in order to portal accepts it ???

Regards

Former Member
0 Kudos

Hi Julian,

Have you seen the code for Create Ticket Login Module. This the one whic creates the MYSAPSSO2 ticket.

You can find the JARin \usr\sap\<SID>\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas.jar and the class is com.sap.security.core.server.jaas.CreateTicketLoginModule.

Regards,

Vijith