Perfect. Thanks! On May 6, 2016 7:08 PM, "Dmitriy Kopylenko" <[email protected]> wrote:
> The link : > https://jasig.github.io/cas/development/installation/Webflow-Customization-Exceptions.html > > On Fri, May 6, 2016 at 18:07, Dmitriy Kopylenko <[email protected]> > wrote: > > Currently not possible or straightforward to achieve. In CAS v5 (available > in SNAPSHOTs versions already) custom error messages based on the custom > authentication exceptions would be a trivial feature available out of the > box: > > On Fri, May 6, 2016 at 17:47, Nicolás <[email protected]> wrote: > > 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 > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/ef01c846-aa58-4b0a-bf7f-e7db90624698%40apereo.org?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > > https://jasig.github.io/cas/development/installation/Webflow-Customization-Exceptions.html > > Best, > D. > > -- > 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/1462572465919-64edcb08-651128b6-855e58df%40unicon.net > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/1462572465919-64edcb08-651128b6-855e58df%40unicon.net?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > -- 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/CAFLGischDBtHES%3D7Fq8B2gyet6QZYqZhaKS7mP2Lcf0iHsvOxQ%40mail.gmail.com. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
