Search code examples
single-sign-oncasjasig

CAS 4 , AuthenticationViaFormAction errors exceptions does not show


In AuthenticationViaFormAction , public final Event submit

i purposely triggered

logger.warn("Invalid login ticket {}", providedLoginTicket);
messageContext.addMessage(new MessageBuilder().code("error.invalid.loginticket").build());
return newEvent(ERROR);

however, in login page it does not show "You cannot attempt to re-submit a form that has been submitted already." this exceptions...

is it bug?


Solution

  • new MessageBuilder().error().code("authenticationFailure.InvalidCaptcha").arg("").de‌​faultText("authenticationFailure.InvalidCaptcha").build() , this should work and return message.