Hello all,
I need to show a dynamic/custom error message when login fail, currently we
are showing the default one: authenticationFailure.AccountNotFoundException=
My dynamic login message comes from my own custom
UserPasswordAuthenticationHandler
Example:
@Override
protected HandlerResult
authenticateUsernamePasswordInternal(UsernamePasswordCredential
transformedCredential) throwsGeneralSecurityException, PreventedException {
try {
……………..
} else {
throw newAccountNotFoundException(
*
document.getElementsByTagName("mensaje_usuario").item(0).getFirstChild().getNodeValue());*
}
……………..
I'm newbie on with CAS, anybody has an example to do that?
Can anybody help me, please?
Best regards
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ef01c846-aa58-4b0a-bf7f-e7db90624698%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.