I input the wrong token to test MFA ,  I found 186 lines of JAVA exception  
in the log.  it should be a normal error situation.  it should be audit log 
instead of JAVA exception.Can we catch this error and this error?

2021-06-10 14:12:33,467 WARN 
[org.apereo.cas.adaptors.gauth.GoogleAuthenticatorAuthenticationHandler] - 
<Authorization of OTP token [1234567890] has failed>
2021-06-10 14:12:33,468 ERROR 
[org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - 
<Authentication has failed. Credentials may be incorrect or CAS cannot find 
authentication handler that supports 
[OneTimeTokenCredential(token=1234567890)] of type 
[GoogleAuthenticatorTokenCredential]. Examine the configuration to ensure a 
method of authentication is defined and analyze CAS logs at DEBUG level to 
trace the authentication event.>
2021-06-10 14:12:33,469 ERROR 
[org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver] - 
<1 errors, 0 successes>
org.apereo.cas.authentication.AuthenticationException: 1 errors, 0 successes
        at 
org.apereo.cas.authentication.PolicyBasedAuthenticationManager.evaluateFinalAuthentication(PolicyBasedAuthenticationManager.java:391)
 
~[cas-server-core-authentication-api-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.authentication.PolicyBasedAuthenticationManager.authenticateInternal(PolicyBasedAuthenticationManager.java:371)
 
~[cas-server-core-authentication-api-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.authentication.PolicyBasedAuthenticationManager.authenticate(PolicyBasedAuthenticationManager.java:144)
 
~[cas-server-core-authentication-api-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.authentication.PolicyBasedAuthenticationManager$$FastClassBySpringCGLIB$$90e801d3.invoke(<generated>)
 
~[cas-server-core-authentication-api-5.3.16.jar:5.3.16]
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
~[spring-core-4.3.25.RELEASE.jar:4.3.25.RELEASE]

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/527b7b2e-3607-4cda-af62-8239e563e427n%40apereo.org.

Reply via email to