0 Replies Latest reply: Sep 14, 2008 3:42 AM by 564397 RSS

    connecting to ocs server with already authenticated user

    564397
      Hi:

      I'm trying to connect to an ocs server, but I wan't to avoid authenticating again.


      Here's the code that I took from one of ocs's documents:
      Note 290445.1 - Changes to the Login Portlet implementation for Portal 9.0.4.1/10.1.2


      This code doesn't work because

      /pls/orasso/orasso.wwsso_app_admin.ls_login"

      does not exist on the ocs server.
      I also tried it with sso/login.jsp.

      Can someone point me in the right direction. I probably have to get /pls/orasso/orasso.wwsso_app_admin.ls_login"
      from someplace.
      Thanks,
      Jerry
      Jerry.Mersel@weizmann.ac.il


      if (!parent.frames.s2pFrame) {
      document.write("No parent.frames.s2pFrame<br>");

      document.loginForm.site2pstoretoken.value =

      "<v1.2~E0839293~C845405AC95AE4C810749B1AC84DB375EC3A27EF49EA28A6535E3D7381CC95DB8C7DAC3C8B949D011B2313C3B2C9DF69690739FCFD90DDA302878F8E274452C126C542753F70E
      AF40F737C756D814327992A5A6D5DF1E25E3B399B686578F170FF53155D5E9690110F3EEA3753307
      CD346A8489F6416B2B2CBA2EA45D7213C36F5A7591B2EC51E8C87E8A27B4B46CF14AF6FD54D7E14D
      606AB8857E658B7260459E3AFBAF2F6F640C9F3720244E3D60ED104F6831EF183CD9A638E1933F92
      53AD74EC169793FEE7CE8A20604C1C6513A0F37A121F16AF5F7A7CA80492769A8F7F4AC27E9986D4
      E709AF83BFCB9D8C7E280DD1ECBF256B6C3FAC3452E530A8C92D9D355936A60041C>";

      } else {

      document.write("Yes parent.frames.s2pFrame<br>");
      var hw = parent.frames.s2pFrame.window;

      var hd = hw.document;

      var s2p = hd.forms.freshTokenForm.site2pstoretoken.value;

      document.loginForm.site2pstoretoken.value = s2p;

      }

      document.loginForm.password.value = (document.loginForm.password.value == "") ? document.loginForm.p_request.value
      : document.loginForm.password.value;

      document.loginForm.p_request.value = "";

      document.loginForm.submit();

      }



      </script>

      <p>
      <h1>Sign In</h1>

      <form name
      ="loginForm"

      action="http://email-srv4.weizmann.ac.il:7777/pls/orasso/orasso.wwsso_app_admin.ls_login

      method="post">

      <input name="site2pstoretoken" type="hidden" value ="">

      <input name="password" type="hidden" value ="">

      Username: <input name="ssousername" type="text" value =""><br>

      Password: <input name="p_request" type="password" value =""><br><br>

      <input name="Login" type="button" value="Login" onClick="loginSubmit();">

      </form>

      <iframe

      name="s2pFrame"

      style="width:0px; height:0px; border:
      0px"

      src=http://email-srv4.weizmann.ac.il:7778/pls/portal/portal.wwptl_login.show_site2pstoretoken>

      </iframe>

      <!-- END CODE FRAGMENT -->
      </html>