简体   繁体   中英

SiteMinder SSO Custom Login page

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

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>

 <html> <body> <form action="/verify.fcc" method="post"> <div class="formRow"> <table> <tr> <td><P><span>Username :</span></P></td> <td><P><input name="USER" 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="/protected.html"> <div class="formRow"> <P> <input name="submit" type="submit" value="Login" /> <input name="Reset" type="reset" /> </P> </div> </form> </body> </html> 

Based on whether the secureurls feature is enabled or not the paramater that is required to be passed/posted to login.fcc would change.

Here is the summary of the data that is required to be posted to Login.fcc

When SecureURLs=No

The post form data contains following :

Required:

target
smagentname

Optional:

smenc
smlocale
smquerydata
postpreservationdata
smauthreason

Post URL : /siteminderagent/forms/login.fcc

When SecureURLs=YES

The post form data contains following :

Required:

smquerydata

Optional:

smenc
smlocale
target
smauthreason
postpreservationdata
smagentname

Post URL : /siteminderagent/forms/login.fcc?SMQUERYDATA=******

Please refer : https://iamtechtips.com/custom-login-page/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM