cancel
Showing results for 
Search instead for 
Did you mean: 

Jco connection using SAP Logon Ticket

Former Member
0 Kudos

The Jco javadoc states

"For SSO specify the user to be $MYSAPSSO2$ and pass the base64 encoded ticket as as the passwd parameter."

However, the createClient method expects passwd to be a string.

Can someone please explain how to pass the base64 encoded ticket as a string and get it to work...

Thanks,

Ray

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Ray,

some data which is Base64 encoded <i>is</i> a string! That's the reason why Base64 encoding exists (to make binary data transportable where only ASCII will be transported).

To get an idea of Base64 see http://en.wikipedia.org/wiki/Base64

So if you have got the Base64 encoded ticket, you just have what you want

Hope it helps

Detlev

Former Member
0 Kudos

Thanks a lot for confirming that. We are seeing problems with the tickets that are returned from SAP EP SP2. They are intermittently working when being passed to a JSP and on to R3 for an SSO logon. It turns out that the cookie (SAP Logon Ticket) must end with %3d%3d (==) for it to work, and it is not always being returned with the == at the end. So we patched the ticket with the tailing == when they are missing and it works every time.

detlev_beutner
Active Contributor
0 Kudos

Hi Ray,

nice to hear that I could help you. Please consider awarding points as "payment" (just press the yellow star at my posting).

Best regards

Detlev