I have a custom authentication handler, which checks the username/pass 
against an elasticsearch datastore. Everything works fine, but if from some 
reason the ES would be down I want to throw an exception saying that the 
system is currently down. I've tried with any subclass of 
GeneralSecurityException or PreventedException which the 
method authenticateUsernamePasswordInternal() are throwing, but the result 
in the UI is always Invalid Credentials. I've also tried with a runtime 
exception, but with the same result. Is there any way how I can handle this 
to display any other message?

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/6470484e-00c6-4dbb-9b64-08b4154009c1%40apereo.org.

Reply via email to