Yes, if you want more fine-grained authentication error messages, just throw
an exception with an appropriate key and then provide a description for that
key in the messages.properties (or your own messages bundle that you
include).

Note that throwing an exception will stop any other handler from being
processed.

-Scott

On 3/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 If want to display a more fine grained set of login failure messages with
CAS, should I just make sure that my AuthenticationHandler throws CAS
AuthenticationExceptions with the appropriate code when authenticate() is
called?

"Your account has expired." - AuthenticationHandler impl will throw an
AuthenticationException with a code or string that will be a key for the
"Your account has expired." property in the messages.properties bundle.

Carlos

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to