cancel
Showing results for 
Search instead for 
Did you mean: 

SSO and Java Script

Former Member
0 Kudos

Hello,

I have a requirement to access SAP using SSO via java script. I have a work around of writing a .NET component which does the SSO connection to SAP system and I call the .NET component from my java script.

Though it solves my problem, this is a SMALL problem for me as I have to get this .NET component in all the users machine.

Is there another way to access the SAP system using SSO via java script.

Thanks and regards,

Bala.

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
Active Contributor
0 Kudos

Hello Bala,

is your Application running in the Portal? If yes you already have a SSO2 Cookie which will be sent also with Java Script XMLHttpRequest. If not perhaps it's possible to call a URL on the Portal which supports SSO via Kerberos or NTLM and retrieve the Cookie there. Then you can use it for other Backend connections.

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

No, not in portal. Its a widget.

Thanks,

Bala.

gregorw
Active Contributor
0 Kudos

Hi Bala,

have you tried my second suggestion? Call a URL in the Portal which returns you the SSO Cookie and then call the service?

Regards

Gregor

Former Member
0 Kudos

Hello Gregor,

I haven't yet tried and I will do so. In my case, I cannot make the assumption that user will have access to the portal or will have portal in the first place.

Thanks and regards,

Bala.

Former Member
0 Kudos

Hi, Bala,

I have done something like this, but with PHP instead of .NET as server side frame.

Principally it is the same, since you will use the .NET RFC library instead of SAPRFC, which I use.

You can check out the latest version of the SAP Scripting Tool at https://www.sdn.sap.com/irj/sdn?rid=/library/uuid/cdbe319e-0d01-0010-92b7-dd4625e7e9de

First install Eclipse 3.1 and then follow the installation instructions of the SAP Scripting Tool. When you get it running (after a restart of Eclipse) open the welcome page and in Samples there is "Create sample projects".

When you click it some sample projects will be created. Check out the phpMaterialCheckRFCSSO project. It is a complete minimalistic SSO application that utilizes the SSO2 cookie and so on.

You only have to change from PHP to .NET - good luck in that.

Message was edited by: Vasil Bachvarov

Former Member
0 Kudos