This project is no longer supported, it can be replaced with this solution:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
</dependency>
This project provides the RedisCache
class which can then be combined with the SpringCacheBasedTicketCache
class from the following:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-cas</artifactId>
</dependency>
These two classes together accomplish the same behavior as this project set to accomplish. Since those projects are spring classes those should be more widely supported and thus why this project is not longer required.
This project implements org.springframework.security.cas.authentication.StatelessTicketCache
for storing stateless CAS tickets in a Redis database. This supports stateless authentication scheme in a highly available environment. This project depends on the Jedis Redis library.
<dependency>
<groupId>com.vnomicscorp</groupId>
<artifactId>spring-stateless-ticket-cache-redis</artifactId>
<version>1.0.3</version>
</dependency>
Usage is simple. Construct a com.vnomicscorp.spring.security.cas.authentication.redis.RedisStatelessTicketCache
with a Redis connection, optionally set expiration time, and use the instance when configuring your CAS security provider.
// Configure Redis connection
JedisPool pool = new JedisPool(new JedisPoolConfig(), hostname, port, timeout, null, database);
// Create the cache
RedisStatelessTicketCache cache = new RedisStatelessTicketCache(pool);
cache.setExpirationSeconds(expirationSeconds);
// Configure the CAS provider
casAuthenticationProvider.setStatelessTicketCache(cache);
mvn install
You must have gpg key to do a full build. Create one on linux with:
gpg --gen-key
If you need to supply a passphrase to the build then use
mvn install -D"gpg.passphrase=thephrase"
See maven-gpg-plugin documentation for further details.