Hi,
As a possible future enhancement, it would be useful if I could obtain the
actual Exception message that is passed from my custom authentication handler.
The current implementation only passes the Class<? extends Exception> object to
the AuthenticationExceptionHandler.
Here's the use case:
I have defined a property for allowedFailedLoginAttempts=3.
If a user enters an invalid password, I would like for them to get a message
like 'Invalid password attempt 1 of 3'.
In my custom authenticationHandler, I would like to throw an
InvalidPasswordException("Invalid password attempt 1 of 3") and have the
message available to the AuthenticationExceptionHandler to be added to the
message context.
The enhancement should allow for AuthenticationExceptionHandler to see if an
Exception message exists then put it into messageContext,
otherwise, put the message.properties message for that Exception in
messageContext.
Any thoughts?
Thanks,
Lamar
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev