Hi Mike,

How is it going now?  did you ever make it work?

Mine is 6.6.x, it should be functional equivalent to CAS7 as far as this 
code is concerned, i am getting "Unable to connect to ...." message.  I 
verified that i am using Redis Standalone config, which is suitable for 
Azure Cloud for Redis.

Yan

On Monday, October 16, 2023 at 1:13:06 AM UTC-4 Mike Rokitka wrote:

> Hi,
>
> We are currently testing CAS v7 via the latest RC8, but have run into a 
> blocker with the configuration of the Redis based ticket registry.  There 
> does not appear to be a way to configure the Redis registry/client to 
> connect without a username (Azure cache for Redis does not use usernames).  
> If we set the username to an empty string via configuration properties (or 
> null programmatically), then it fails due to username assertions in 
> lettuce.  
> Eg. 
>
> Caused by: java.lang.IllegalArgumentException: User name must not be null
>         at 
> io.lettuce.core.internal.LettuceAssert.notNull(LettuceAssert.java:71)
>         at 
> io.lettuce.core.RedisURI$Builder.withAuthentication(RedisURI.java:1563)
>         at 
> org.apereo.cas.redis.core.RedisObjectFactory.newRedisModulesCommands(RedisObjectFactory.java:132)
>
> This can be traced to RedisObjectFactory.newRedisModulesCommands() in 
> cas-server-support-redis-core, as it assumes a username is present if a 
> password is present (via uriBuilder.withAuthentication call).  This 
> should check for a null/empty username first and use 
> uriBuilder.withPassword instead in that case.
>

-- 
- 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/e2b0f23a-e3a9-4b6a-b0c9-ead235fb34f2n%40apereo.org.

Reply via email to