Skip to Content
author's profile photo Former Member
Former Member

SSO and Java Script


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,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2006 at 08:58 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2006 at 12:36 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.