Fine Grained AuthenticationException Messages
Scott Battaglia
scott.battaglia at gmail.com
Sun Mar 18 18:34:43 EDT 2007
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, Carlos.Fernandez at usitc.gov <Carlos.Fernandez at usitc.gov> 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
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070318/64e4450f/attachment.html
More information about the cas
mailing list