Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> custom sso login page
Hi,
Sorry for long post but I wanted to explain everything ...
I have a problem with custom SSO login page (10.1.2.). When I login to Portal everything is ok. I can logout and login without any problems. Then, in another window if I open oiddas (I am already logged on) and try to LOGOUT from oiddas I get the error: page cannot be found. After that I cannot logout even from Portal.
Did anyone have such problem? ...
I made changes to /sso/conf/policy.properties
#Deployment login page link
#loginPageUrl = /sso/jsp/login.jsp
loginPageUrl = http://someserver:port/pls/orasso/orasso.sso_custom.login
... and this is the code:
CREATE OR REPLACE PACKAGE sso_custom AS
procedure login (site2pstoretoken VARCHAR2 default null,
ssousername VARCHAR2 default null, p_error_code VARCHAR2 default null, p_cancel_url VARCHAR2 default null, p_submit_url VARCHAR2 default null, subscribername VARCHAR2 default null);
END sso_custom;
/
CREATE OR REPLACE PACKAGE BODY sso_custom as
procedure login (site2pstoretoken VARCHAR2 default null,
ssousername VARCHAR2 default null, p_error_code VARCHAR2 default null, p_cancel_url VARCHAR2 default null, p_submit_url VARCHAR2 default null, subscribername VARCHAR2 default null)
'auth_fail_exception','Invalid username/password. Please try again!', 'acct_ip_lock_err','Your username has been locked out from this IPaddress. You have committed too many login failures from this IP address.',
'acct_lock_err','Your username has been locked out from this IP address.
You have committed too many login failures from this IP address.',
'null_uname_pwd_err','Username cannot be blank! Please type a
username!',
'no_papp_err','The partner application configuration is missing or has
expired.',
'ssl_not_used_err','SSL is not being used.',
'ls_config_not_found_err','The login server configuration is missing.',
'cookies_disabled_err','Your browser is not accepting cookies. Please
enable cookies and try again.',
'account_deactivated_err','Your account has been account deactivated
(i.e., terminated).',
'value_error_exception','An invalid value was specified in the
site2pstoretoken.',
'null_password_err','Password cannot be blank! Please type a Password!',
'ext_auth_unknown_err','There was an unknown error in accessing the
external authentication mechanism.',
'sso_cookie_expired_err','Your login session has expired. Please login
again.',
'unexpected_exception','An unexpected error occurred during
authentication.','Unhandled exception!')
into v_err_code
from dual;
htp.p('<table width="100%" border="0" cellspacing="3" cellpadding="3" height="124"><tr><td width="33%" height="70"><img src="/images/your_logo.gif" alt="Your Org Name" border=0></a></td></tr></table>');
htp.p('<BODY onLoad="document.forms[0].ssousername.focus();">');
htp.centerOpen;
if p_error_code is not null then
htp.para; htp.para; htp.bold('<font face="Verdana" color="red"size="2">'||v_err_code||'</font>');
htp.para; htp.para; htp.hr; end if; --htp.p('<FORM
htp.formHidden('site2pstoretoken',site2pstoretoken); htp.tableOpen; htp.tableRowOpen; htp.p('<TD>'); htp.p('<font face="Verdana" color="black" size="2">Username: </font>'); htp.p('</TD>'); htp.p('<TD>'); htp.formText('ssousername','30','30',ssousername); htp.p('</TD>'); htp.tableRowClose; htp.tableRowOpen; htp.p('<TD>'); htp.p('<font face="Verdana" color="black" size="2">Password: </font>'); htp.p('</TD>'); htp.p('<TD>'); htp.p('<INPUT TYPE="password" NAME="password" SIZE="30" MAXLENGTH="255">'); htp.p('</TD>'); htp.tableRowClose; htp.tableRowOpen; htp.p('<TD>'); htp.p(' '); htp.p('</TD>'); htp.p('<TD>'); htp.p('<INPUT TYPE="submit" VALUE="Login">'); htp.p(' '); htp.p(' '); htp.p(' '); htp.p(' '); htp.p('<INPUT TYPE="button" NAME="p_request" VALUE="Cancel"onClick="javascript:document.location.href = ''/pls/portal/PORTAL.home'';">');
htp.p('</TD>'); htp.tableRowClose; htp.tableClose; htp.formClose; htp.centerClose;
END sso_custom;
/
Received on Wed Mar 30 2005 - 10:30:45 CST
![]() |
![]() |