See https://groups.google.com/a/apereo.org/d/msgid/cas-user/56A68D83-B246-4917-9274-A1BE860FC5AA%40gmail.com?utm_medium=email&utm_source=footer
El miércoles, 28 de febrero de 2018, Michael MacEachran < [email protected]> escribió: > 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! > > -- > - 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/d3d51000-5f44-4800-93ba- > 6341b762b023%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d3d51000-5f44-4800-93ba-6341b762b023%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - 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/CAMY5micu4%2B_prp%2Baent%3DAu%3DXudRasg6njc1TLppU2bAgWoEEDw%40mail.gmail.com.
