Closed ddydeveloper closed 6 years ago
Hi @ddydeveloper According to the error, the component is not yet able to connect to the server, this is before even trying to authentication using the password, what I suggest is to try connect first to that Redis instance without configure the authentication on it, to pin point it's a connection issue.
Lastely, this IdentityServer.Contrib.RedisStore library proxies all these configuration to the excellent StackExchange.Redis library, I recommend you to read the documentation and raise any issue you are facing at the StackExchange.Redis repository.
@AliBazzi, good morning!
Thank you for suggestion. This problem appeared straight after configuring the password for redis service. If I disable AUTH it works as expected.
I use Redis as an operational storage for the IdentityServer and nowhere else, in this code only:
.AddOperationalStore(opt =>
{
opt.RedisConnectionString = Configuration.GetConnectionString("Redis.Cache");
});
So I suppose IdentityServer4.Contrib.RedisStore library should provide the way to connect to the redis service with password. I'll continue investigating but It would be great if you give an example how to provide the AUTH password in AddOperationalStore API.
@AliBazzi I've found the right way! You were right, it is not about the IdentityServer4.Contrib.RedisStore. All you need just set a password in connection string like this:
"localhost:6379,password=password"
The StackExchenge doc:
https://stackexchange.github.io/StackExchange.Redis/Configuration
@ddydeveloper Great that your problem is solved !
Good morning! Could you specify is it possible to set up an AUTH passsword if you configure this option for the redis service.
I've tried to use ConfigurationOptions:
But anyway I got the following error:
It doesn't work in this way too:
If I use the same password with redis-cli is it OK: