Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to post to login.fcc from Oracle ADF Customized login page or a simple HTML

user9157535Jan 2 2014

Hi,

I am new to siteminder, any help will be highly appreciated.

We have a Oracle WebCenter Application which is currently being protected by Siteminder SSO. When we click on our webcenter application login, we will be routed to a default siteminder login page login.fcc. Upon entering valid credentials, siteminder sends a response to OAM(Oracle Access Manager) and authentication is successful.

We are trying to implement a customized login page in jsp or adf jspx page which should be shown to users in place on login.fcc.

Can anyone please provide the sample code on how to implement this. I have followed the below steps but didn't help. I am getting 500 Internal server error.

Below is my JSP.

**************************************

<%@page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%

String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String reqId = request.getParameter("request_id");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<base href="<%=basePath%>">

<title>OAM Custom Login Form</title>

<meta http-equiv="pragma" content="no-cache">

<meta http-equiv="cache-control" content="no-cache">

<meta http-equiv="expires" content="0">

<meta http-equiv="keywords" content="OAM,Custom,Login,Form">

<meta http-equiv="description" content="This is my page">

<!--

<link rel="stylesheet" type="text/css" href="styles.css">

-->

</head>

<body onload="document.forms['loginData'].submit();">

<br/>

<br/>

<div style="clear: both; text-align: center;">

<IMG alt=Logo src="images/citi-logo.png">

<img src="images/Citi-banner.PNG" hight="72" width="72" alt="Welcome to www.freeoraclehelp.com"/>

<br/>

<br/>

</div>

<form action="https://p2pap12d.nam.nsroot.net:32190/siteminderagent/forms/login.fcc" method="post">

<input type="hidden" name="SMENC" value="ISO-8859-1"/>

                  <input type="hidden" name="SMLOCALE" value="US-EN"/>

<center>

<table width="50%" height=200 border=1 cellpadding=0 cellspacing=0 >

<tr>

<td>

<table WIDTH="100%" HEIGHT=200 BGCOLOR="#E7E8E8" border=0 cellpadding=0 cellspacing=0 >

        <tr>

          <td ALIGN="CENTER" VALIGN="CENTER" HEIGHT=40 COLSPAN=4  BGCOLOR="#333436">

                <font color="#FFFFFF" size="+1" face="Arial,Helvetica">

                <b>Free Oracle Help - OAM Single Sign-On(SSO)</b></font>

              </td>

        </tr>

<tr>

<td>Login</td>

<td><input type="text" name="USER" value="<%= request.getHeader("SM_USER") %>"></td>

</tr>

<tr>

<td>Password</td>

<td><input type="password" name="PASSWORD"></td>

</tr>

<tr>

<td></td>

<td><input type="hidden" name="request_id" value="<%=reqId%>"></td>

</tr>

<tr>

<td></td>

<td><input type=hidden name=SMAUTHREASON value="0"></td>

</tr>

<tr>

<td><input type="submit"></td>

<td> </td>

</tr>

</table>

<table cellspacing="2" cellpadding="3" border="1">

                  <tr>

           

                <td class="SubHeader" width="92"> </td>

                    <td class="SubHeader" height="43">

                    <input type="hidden" name="target" value="http://p2pap12d.nam.nsroot.net:32101/ssologin/ssologin.jsp"/>

                    <input type="hidden" name="smquerydata" value="$$smquerydata$$"/>

                    <input type="hidden" name="SMAUTHREASON" value="0"/>

                    <input type="hidden" name="smagentname" value="$$smagentname$$"/>

                    <input type="hidden" name="postpreservationdata" value="$$postpreservationdata$$"/>

                    </td>

                </tr>

                </table>

</td>

</tr>

</table>

</center>

</form>

</body>

</html>

****************************************

I have created a web project with a jsp file and deployed it to the weblogic server.

I ran the application and upon providing username and password, my web url is updated as below with a 500 error

https://p2pap12d.nam.nsroot.net:32190/siteminderagent/forms/login.fcc

Internal Server Error

The server encountered an unknown error, possibly due to misconfiguration. Contact the server administrator: [no address given]

More information about this error may be available in the server error log.

I have also tried to post to login.fcc from html page which is even un-successful.

***********************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

  <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>

    <title>P2PLogin</title>

    <script type="text/javascript">

        function submitForm()

        {

         document.Login.submit();

        }

    </script>

  </head>

  <body>

    <form id="myform" name="myform" method="POST" action="/siteminderagent/forms/login.fcc">

<INPUT TYPE=HIDDEN NAME="SMENC" VALUE="ISO-8859-1">

<INPUT type=HIDDEN name="SMLOCALE" value="US-EN">

<table width="32%" cellspacing="5" cellpadding="5" border="0"  id="table12">

<!-- <table width="32%" cellspacing="0" cellpadding="0" border="0" class="OuterTableFull" id="table12"> -->

<tr>

<td>

<table width="50%" cellspacing="0" cellpadding="0" border="0" id="table13">

<tr>

<td align="left" width="100%">

<fieldset>

<table border="0" cellpadding=0 cellspacing=0 id="table14" style="border: 1px solid #ffffff;" width="364" height="138">

<!-- <table border="0" cellpadding=0 cellspacing=0 id="table14" style="border: 1px solid #d0d0d0;" width="364" height="138">-->

<tr>

    <td class="subheader" height=10>

    </td>

    <td class="subheader" width="250" > </td>

    </tr>

<tr>

    <td class="SubHeader" align="left" width="92">

    <p align="right">UserName: </p></td>

    <td class="RowShadedHigh" width="250" ><b>

    <input name="USER" size="34" class="textinput" style="float: left">

    </b>

    </td>

    </tr>

    <tr>

    <td class="SubHeader" align="left" valign="middle" width="92">

    <p align="right">Password:</p></td>

        <td class="SubHeader" height="28">

        <input type="password" size="34"  class="textinput" name="PASSWORD" autocomplete="off" style="float: left" onkeypress="if (event.keyCode==13) submitForm();">   </td>

    </tr>

    <tr>

     <td class="SubHeader" width="92"> </td>

        <td class="SubHeader" height="43">

        <input type=hidden name=target value="/siteminderagent/forms/failedlogin.html">

<input type=hidden name=smquerydata value="$$smquerydata$$">

<input type=hidden name=SMAUTHREASON value="0">

<input type=hidden name=smagentname value="$$smagentname$$">

<input type=hidden name=postpreservationdata value="$$postpreservationdata$$">

        <input type="button" value="Sign On" class="ButtonSm" onClick="submitForm()">

</td>

    </tr>

    <tr>

    <td class="SubHeader" width="92">

    <p align="center">

        <img border="0" src="../images/signon_logo.gif"  align="left" alt="single sign-on logo">

        </p>

        </td>

<!--            <img border="0" src="../images/signon_logo.gif" width="57" height="25" align="left" alt="single sign-on logo"></td> -->

        <td class="SubHeader" height="37">

        <a href="/siteminderagent/forms/smpwservices.fcc?SMAUTHREASON=34&TARGET=$$target$$">Change Password</a>     <font size=2><a href="https://onereset.citigroup.net">Reset Password</a> </font>

                </td>

    </tr>

    <!-- <tr>

        <td class="SubHeader" nowrap width="92">

         <p align="center">  </p>

        </td>

     <td class="SubHeader" height="37">

              <font size=2><a href="https://onereset.citigroup.net">Reset Password Using OneReset</a> </font>

    </td>

        </tr> -->

        </table>

</fieldset>

</td>

</tr>

</table>

</td>

</tr>

</table></form>

  </body>

</html>

*********************************

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2014
Added on Jan 2 2014
0 comments
1,121 views