CAS 5.2.2 logs showing authentication failure and sucess

75 views
Skip to first unread message

Michael MacEachran

unread,
Feb 27, 2018, 11:58:35 PM2/27/18
to CAS Community
I am trying to add my own custom authentication handler that accesses the database and I have this in my main configuration class:

    @Bean
    public DatabaseAuthenticationProvider getAuthenticationProvider() {
        return new DatabaseAuthenticationProvider("databaseAuthenticationProvider", servicesManager, principalFactory, 1);
    }

(the servicesManager and principalFactory are Autowired in)

and I am getting this in my logs:

18-02-27 23:49:42.233 ERROR 28733 --- [nio-8443-exec-6] o.a.c.a.PolicyBasedAuthenticationManager : Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [mmaceachran] of type [UsernamePasswordCredential].
2018-02-27 23:49:42.235  INFO 28733 --- [nio-8443-exec-6] o.a.i.a.s.Slf4jLoggingAuditTrailManager  : Audit trail record BEGIN
=============================================================
WHO: mmaceachran
WHAT: Supplied credentials: [mmaceachran]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Tue Feb 27 23:49:42 EST 2018
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

So I have 2 questions:

1.  How do I tell CAS to use my authentication manager
2.  Why does the log say that I have AUTHENTICATION_SUCCESS?

Thank You!

Man H

unread,
Feb 28, 2018, 7:36:51 AM2/28/18
to cas-...@apereo.org
See
--
- 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+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/d3d51000-5f44-4800-93ba-6341b762b023%40apereo.org.
Reply all
Reply to author
Forward
0 new messages