Please check here https://github.com/charybr/cas5-cassandra-athentication/blob/master/CassandraAuthenticationHandler.java
I will add sample project later. On Tuesday, 29 November 2016 20:49:34 UTC+5:30, Misagh Moayyed wrote: > > Do you mind sharing the source for the actual > CassandraAuthenticationHandler and everything else it depends on? This > somewhere on Github I can review? > > > > --Misagh > > > > *From:* [email protected] <javascript:> [mailto:[email protected] > <javascript:>] *On Behalf Of *Raghavendra Chary B > *Sent:* Monday, November 21, 2016 10:28 AM > *To:* CAS Community <[email protected] <javascript:>> > *Subject:* [cas-user] Re: Custom Authentication Handler in version 5.0.0 > > > > I had to implement custom Authentication handler where user creds are > stored in Cassandra db. > > Followed below steps, not sure whether this is recommneded approach or not: > 1. Created package org.apereo.cas.<custom>.adaptors.cassandra > 2. CassandraAuthenticationHandler > > public class CassandraAuthenticationHandler implements > AuthenticationHandler { > > } > > 3. Created > org.apereo.cas.<custom>.adaptors.cassandra.config.CasCassandraConfiguration > similar to org.apereo.cas.adaptors.generic.config.CasGenericConfiguration. > > @Configuration("casCassandraConfiguration") > @EnableConfigurationProperties(CasConfigurationProperties.class) > public class CasCassandraConfiguration { > > @RefreshScope > @Bean > public AuthenticationHandler cassandraAuthenticationHandler() { > final CassandraAuthenticationHandler h = new > CassandraAuthenticationHandler(); > return h; > } > > > @PostConstruct > public void initializeAuthenticationHandler() { > System.out.println("1755"); > > this.authenticationHandlersResolvers.put(cassandraAuthenticationHandler(), > personDirectoryPrincipalResolver); > } > > > > On Thursday, 8 September 2016 14:17:25 UTC+5:30, Gokhan Mansuroglu wrote: > > Hi, > > Let's say I have a custom AbcAuthencticationHandler and AbcCredentials. > How can i configure this custom auhtentication handler ? In previous > versions this can be handled in deployerConfigContext.xml, but how it is > done in version 5.0.0 ? > > Thanks. > > -- > - CAS gitter chatroom: https://gitter.im/apereo/cas > - CAS mailing list guidelines: > https://apereo.github.io/cas/Mailing-Lists.html > - CAS documentation website: https://apereo.github.io/cas > - CAS project website: https://github.com/apereo/cas > --- > 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] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/f6e3829e-1b46-4118-aa36-65b3ba1aa669%40apereo.org > > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/f6e3829e-1b46-4118-aa36-65b3ba1aa669%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/7771259a-cfb8-47ff-a07b-34f2ce894bcb%40apereo.org.
