Solution:
# cas-server-support-trusted-mfa-redis seems to trigger spring-boot
RedisRepositoriesAutoConfiguration, which fails to start with a "redisTemplate"
error
spring.data.redis.repositories.enabled: false
in cas.properties
On 31/10/2021 13:53, Sem van den Broek wrote:
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):
--
- 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/5f2a8295-ce2c-af3b-ddf3-af107a081c84%40univ-paris1.fr.