You are viewing the development documentation for the Apereo CAS server. The functionality presented here is not officially released yet. This is a work in progress and will be continually updated as development moves forward. To view the documentation for a specific Apereo CAS server release, please choose an appropriate version. The release schedule is also available here.
Webflow Errors Customization
By default CAS is configured to recognize and handle a number of exceptions for web flow during authentication. Each exception has the specific message bundle mapping in
messages.properties So that a specific message could be presented to end users on the login form. Any un-recognized or un-mapped exceptions results in the
UNKNOWN mapping with a generic
Invalid credentials. message.
To map custom exceptions in the webflow, one would need map the exception in CAS settings and then define the relevant error in
1 authenticationFailure.MyAuthenticationException=Authentication has failed, but it did it my way!
To see the relevant list of CAS properties, please review this guide.