cancel
Showing results for 
Search instead for 
Did you mean: 

Reading MYSAPSSO2 Cookie using HttpGetterCallback

Former Member
0 Kudos

Hi,

I've custom login module where I'm trying to read the existing SSO ticket and re authenticate and validate it if for returning users. For some reason I was not able to get the Cookie value using HttpGetterCallback. Here is the code I'm calling with my Code.

HttpGetterCallback getterCallback = new HttpGetterCallback();

getterCallback.setType(HttpCallback.COOKIE);

getterCallback.setName("MYSAPSSO2");

String token = (String)getterCallback.getValue();

This always returns null I see in the browser there do exists a cookie. Am I doing something wrong here. Any help is really appreciated.

Thanks,

Joe.P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You may need to implement a call back handler. Please refer section [2.8 Remote authentication|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b00a87e5-0601-0010-87a7-9c0456cf8436]

Other ways to do it: [MYSAPSSO2 cookie|] and [Zope|http://www.zope.org/Members/Dirk.Datzert/MySapSsoSupport/]

Former Member
0 Kudos

Hi,

Thanks for responding to my post, I have my callbackHandler Implementation, And other ways that you have mentioned can't be implemented in my scenario since I'm not using Portals here so there is no way of accessing Request and Response objects. Unless if NetWeaver does provide some other ways to read Request and Response objects.

Thanks,

Joe.P