I am trying to integrate Redis Ticket Registry for CAS 7.2.4. And I ran
into following error while running my CAS
*Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'redisModulesOperations' defined in class path
resource
[org/apereo/cas/config/CasRedisTicketRegistryAutoConfiguration$RedisTicketRegistryModulesConfiguration.class]:
Failed to instantiate [org.apereo.cas.redis.core.RedisModulesOperations]:
Factory method 'redisModulesOperations' threw exception with message: Redis
server does not support Redis Modules*
The issue seem to arise from following block of code of class
'CasRedisTicketRegistryAutoConfiguration':
val operations = redisModulesOperations.stream().filter(BeanSupplier::
isNotProxy).findFirst();
return new RedisTicketRegistry(cipher, ticketSerializationManager,
ticketCatalog, applicationContext,
casRedisTemplates, redisTicketRegistryCache,
redisTicketRegistryMessagePublisher,
operations, redisKeyGeneratorFactory, adapter, casProperties);
The config is:
cas:
ticket:
registry:
redis:
# Redis server host
host: "localhost"
port: 6379
password: "your-redis-password"
database: 0
enabled: true
crypto:
enabled: true
encryption:
key: "YourEncryptionKeyMustBeAtLeast256Bits"
signing:
key: "YourSigningKeyMustBeAtLeast256Bits"
I have added following dependencies:
implementation("org.apereo.cas:cas-server-support-redis-ticket-registry:${
project.'cas.version'}")
implementation("org.apereo.cas:cas-server-support-redis-modules:${project.
'cas.version'}")
--
- Website: https://apereo.github.io/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 visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f2d28af4-c0f5-4ce3-b4b1-d02900c0b5c9n%40apereo.org.