Skip to content

Custom Authentication handler where user creds are stored in Cassandra db.

License

Notifications You must be signed in to change notification settings

stenflo/cas5-cassandra-athentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cas5-cassandra-athentication

Custom Authentication handler where user creds are stored in Cassandra db.

Followed below steps:

  1. Created package org.apereo.cas..adaptors.cassandra

  2. CassandraAuthenticationHandler

    public class CassandraAuthenticationHandler implements AuthenticationHandler {

    }

  3. Created org.apereo.cas..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);
     }
    

About

Custom Authentication handler where user creds are stored in Cassandra db.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%