This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Security AuthenticationProviders & returning a value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Security AuthenticationProviders & returning a value" Watch "Security AuthenticationProviders & returning a value" New topic
Author

Security AuthenticationProviders & returning a value

Sebastian Salvo
Greenhorn

Joined: Nov 14, 2008
Posts: 4
Hi all,

The Security Providers are configured in a Weblogic 7.
Does anyone knows if there is a way to return a value from the login module back to the application when the authentication process fails and a FailedLoginException is thrown?

I have my web.xml configured this way:

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/errorPage.jsp</form-error-page>
</form-login-config>
</login-config>

Any time the login attempt fails, you get redirected to the errorPage.jsp. But what I want is to get some additional info from the security provider, e.g., an error code to display a different message according to the type of error.

Any help will be appreciated,
Thanks!
 
Don't get me started about those stupid light bulbs.
 
subject: Security AuthenticationProviders & returning a value
 
Similar Threads
Unable to apply security
J2EE Security
login-config question
forms authentication (j_security_check) with JSF
Basic Authentication using web.xml