Hi there,

When setting up my CAS overlay (version 6.4.2) I opted to use Redis for two 
parts of the system:

   1. Ticket registry storage
   2. Multi Factor Authentication GAuth storage

Ideally I would like to point them both to the same Redis instance without 
a cluster setup. Whenever I start the overlay i get the following error 
message on application startup:

*​A component required a bean named 'redisTemplate' that could not be 
found.*

*​*This error only appears whenever I install both "
cas-server-support-redis-ticket-registry" and the "
cas-server-support-gauth-redis" implementations in my build.gradle file. 
Installing only one of them fixes the issue, but then one of the stores 
does not work anymore. The application then fails to start, and tries 
again. I am running the overlay and Redis both in a docker-compose stack.

I have given both the configuration parameters a different database number 
in my config file, but that didn't make a difference. The relevant parts of 
my configuration now come down to this (and this is the only part in my 
config that touches Redis settings):

# MFA support
cas.authn.mfa.gauth.redis.host=redis
cas.authn.mfa.gauth.redis.database=0

# Ticket storage
cas.ticket.registry.redis.host=redis
cas.ticket.registry.redis.database=1

I also am not able to find anything in the documentation regarding the 
setup of two stores that point to the same Redis instance.

Is there anything I could be forgetting, and what are the best steps to 
make this work?

Many thanks in advance!

Kind regards,
Sem van den Broek

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/1285004e-c9d7-424a-ade5-1e64293652f7n%40apereo.org.

Reply via email to