• Jyoti Khetan
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
Hello,
 
My organization is using the Force.com platform for an application. I am trying to implement the Single sign on in Salesforce.com.
 
I got the SSO enabled from SalesForce.com. Then I set up a web service for delegated authentication as per the WSDL released by Salesforce.com.
 
I turned on "Single sign-on" feature for my user profiles. I developed an ASP.NET web page that submits a POST request to

https://www.salesforce.com/login.jsp as given in the sample code by SalesForce.com. Heres the code:

<body onload="document.loginForm.submit();">

<form action="https://www.salesforce.com/login.jsp" method="POST" id="login" name="login">

<input type="hidden" name="un" runat="server" id="username"/>

<input type="hidden" name="pw" runat="server" id="token"/>

<input type="hidden" name="startURL" runat="server" id="startURL"/>

<input type="hidden" name="logoutURL" runat="server" id="logoutURL"/>

<input type="hidden" name="ssoStartPage" runat="server" id="ssoStartPage"/>

<input type="hidden" name="jse" value="0" id="jse"/>

<input type="hidden" name="rememberUn" value="1"/>

<script language="Javascript1.2" type="text/javascript">

document.getElementById("jse").value = 1;

</script>

</form>

</body>

The problem is that the login does not happen. I get the login page again after the post request, populated with the username. However, when I enter the password, I am able to login successfully.

Can somone help me please? We are applying for the enterprise edition, and without this, we can't be sure.

Thanks in advance,

Jyoti Khetan

Hello,
 
My organization is using the Force.com platform for an application. I am trying to implement the Single sign on in Salesforce.com.
 
I got the SSO enabled from SalesForce.com. Then I set up a web service for delegated authentication as per the WSDL released by Salesforce.com.
 
I turned on "Single sign-on" feature for my user profiles. I developed an ASP.NET web page that submits a POST request to

https://www.salesforce.com/login.jsp as given in the sample code by SalesForce.com. Heres the code:

<body onload="document.loginForm.submit();">

<form action="https://www.salesforce.com/login.jsp" method="POST" id="login" name="login">

<input type="hidden" name="un" runat="server" id="username"/>

<input type="hidden" name="pw" runat="server" id="token"/>

<input type="hidden" name="startURL" runat="server" id="startURL"/>

<input type="hidden" name="logoutURL" runat="server" id="logoutURL"/>

<input type="hidden" name="ssoStartPage" runat="server" id="ssoStartPage"/>

<input type="hidden" name="jse" value="0" id="jse"/>

<input type="hidden" name="rememberUn" value="1"/>

<script language="Javascript1.2" type="text/javascript">

document.getElementById("jse").value = 1;

</script>

</form>

</body>

The problem is that the login does not happen. I get the login page again after the post request, populated with the username. However, when I enter the password, I am able to login successfully.

Can somone help me please? We are applying for the enterprise edition, and without this, we can't be sure.

Thanks in advance,

Jyoti Khetan