Using the Redis driver to connect to Azure cache for Redis with an Entra ID

When trying to login to the Azure cache for Redis using the Redis driver there is no option to select an Entra Id only username and password. How can we use the Entra Id?

0
1 comment

Hi, 

We have not tested it with entra id, so we created a task to test this scenario 

https://youtrack.jetbrains.com/projects/DBE/issues/DBE-23405 

Theoretically speaking, it should be working out of the box. You need to ensure that the following conditions are met 

https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-azure-active-directory-for-authentication 

Once it's done, you need to add the MSAL4J library in your data source 

To establish a connection, use user and password authentication where

• `User` = Object ID of your managed identity or service principal
• `Password` = Microsoft Entra token that you acquired by using MSAL

0

Please sign in to leave a comment.