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].
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.

Reply via email to