|
Home > Archive > WebSphere Application Server > October 2006 > How to reach exception details in form-base-authentication fail
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to reach exception details in form-base-authentication fail
|
|
|
| Hi ,
I'm working on a web project which has it's own custom user registry.I developed my custom registry class and it's works well.My custom registry class throws exceptions on it's checkPassword method depends on the situation like "wrong password" , "no use
r found" , "user blocked" etc... Because of I'm using form-based-authentication , the server redirects authentication request to my fail page.
I need to reach exception details which raised from my checkPassword method to display more detailed messages on my fail login page.
Is there a way to do this ?
Thanks in advance .
| |
| Paul Ilechko 2006-10-23, 7:22 pm |
| serhat.dirik@gmail.com wrote:
> Hi ,
>
> I'm working on a web project which has it's own custom user
> registry.I developed my custom registry class and it's works well.My
> custom registry class throws exceptions on it's checkPassword method
> depends on the situation like "wrong password" , "no user found" ,
> "user blocked" etc... Because of I'm using form-based-authentication
> , the server redirects authentication request to my fail page. I need
> to reach exception details which raised from my checkPassword method
> to display more detailed messages on my fail login page.
>
> Is there a way to do this ?
>
> Thanks in advance .
>
>
>
You can't directly get the exception as you CUR is called by the WAS
security runtime. However, there is a generic way to get failure
information from WAS for any registry type using
com.ibm.websphere.security.auth.WSSubject.getRootLoginException();
- this should also work for CUR. I've posted sample code for this a
couple of times on this forum, I suggest you search the archives.
Paul.
|
|
|
|
|