Skip to Main Content

Security Software

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!

OAM custom login page: custom error handling

893079Oct 7 2011 — edited Feb 15 2013
Hello everybody,

I have a custom login page developed under Oracle Single Sign On 10g, and now needs to be migrated using Oracle SSO / OAM 11.1.1.4.

The page is in Java / JSP, deployed under Weblogic 10.3.4.

The main question I have still unanswered is where can I get some information about java api (like javadocs, or sample codes) to manage the packages oracle.security.sso.util. * /oracle.security.sso.server.util.* (like class oracle.security.sso.util.SSOResourceFactory)?

Do these packages / classes remain the same between 10g / 11g?

Actually, my need is to handle error messages (localized with user locale) during wrong login, like (but not only) wrong password, password expired, user locked, and so on.

In SSO 10g, I used to get these localized message by a message bundle, in this way:

ResourceBundle rs =msgFactory.getResourceBundle(request, ServerMsgID.MESSAGE_BUNDLE_NAME);

where msgFactory is an application-scope bean in my jsp:

+<jsp:useBean id="msgFactory" scope="application" class="oracle.security.sso.util.SSOResourceFactory" />+


I have been looking through this forum, oracle support, google, and oracle docs, but couldn't find any help in this.

For example, when I type in the wrong password in my custom jsp, I get redirected to the same jsp, and in the request string appears the parameter:

http://myserver:myport/myCustomLogin/login.jsp?request_id=7732746935264223710&error_code=OAM-1006&redirect_url=http://myProtectedServer:myProtectedPort/myProtectedApplication/index.jsp


And I need to print out:

Error: <error description>

Can anybody help me out?
Thanks for your answers!

Matteo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2013
Added on Oct 7 2011
5 comments
1,383 views