SiteMinder SSO Custom Login page

Ray picture Ray · Sep 21, 2011 · Viewed 10.5k times · Source

Has anyone got a bare bones custom login page, that will post to the default login.fcc. I'm unsure where to start with this. Presumably it would have javascript code to take a part the query string and then pass it on to the login.fcc

Answer

John Oleynik picture John Oleynik · Oct 22, 2011

Custom login pages are simple- all you have to do is post with the correct variables to the FCC. This snippet is from login.fcc, so in this case the web agent fills in the $$ variables automatically, and then posts to itself. If you are going submit the variables from another source (non fcc) then you will have to make sure to include the agent name, username, password, and target in your post.

<form action="login.fcc" method="post">
                                       <div class="formRow">
                                       <table>
                                               <tr>
                                                       <td><P><span>Username :</span></P></td>
                                                       <td><P><input name="username" type="text" value=""
style="width:150px" /></P></td>
                                               </tr>
                                               <tr>
                                                       <td><P><span>Password :</span></P></td>
                                                       <td><P><input name="password" type="password" value=""
style="width:150px" /></P></td>
                                               </tr>
                                       </table>
                                       </div>

<INPUT TYPE=HIDDEN NAME="SMENC" VALUE="ISO-8859-1">
<INPUT type=HIDDEN name="SMLOCALE" value="US-EN">
<INPUT type=HIDDEN name="SMRETRIES" value="1">
<input type=hidden name=target value="$$target$$">
<input type=hidden name=smquerydata value="$$smquerydata$$">
<input type=hidden name=smauthreason value="$$smauthreason$$">
<input type=hidden name=smagentname value="$$smagentname$$">
<input type=hidden name=postpreservationdata value="$$postpreservationdata$$">


                                       <div class="formRow">
                                       <P><input name="submit" type="submit" value="Login" />
                                       <input name="Reset" type="reset" /></P>
                                       </div>
                   </form>