From 80ac694a9f1fed5aed39c8ab65724c8a818382b1 Mon Sep 17 00:00:00 2001 From: Julien Ruaux Date: Wed, 6 Aug 2025 15:09:50 -0700 Subject: [PATCH 1/2] deps: Upgrade azure-identity and remove superfluous msal4j dependencies --- core/pom.xml | 4 ++-- entraid/pom.xml | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index e1d0f3a..6e6f3b4 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -57,7 +57,7 @@ redis.clients.authentication.core 1.7.36 1.7.1 - 2.18.0 + 2.18.2 3.5.2 @@ -222,7 +222,7 @@ ${project.build.outputDirectory}/META-INF/MANIFEST.MF - ${core.module.name} + ${core.module.name} diff --git a/entraid/pom.xml b/entraid/pom.xml index bd4eda2..32c76ed 100644 --- a/entraid/pom.xml +++ b/entraid/pom.xml @@ -70,15 +70,10 @@ redis-authx-core ${project.version} - - com.microsoft.azure - msal4j - 1.19.1 - com.azure azure-identity - 1.15.4 + 1.16.3 junit From d2309e8c661461af9a957217981dfae9c0d4ffdf Mon Sep 17 00:00:00 2001 From: Julien Ruaux Date: Wed, 6 Aug 2025 15:11:19 -0700 Subject: [PATCH 2/2] fix: Remove unnecessary `throws` in `AutoCloseable.close()` implementation --- .../entraid/EntraIDTokenAuthConfigBuilder.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java b/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java index bbd8224..a6bf04f 100644 --- a/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java +++ b/entraid/src/main/java/redis/clients/authentication/entraid/EntraIDTokenAuthConfigBuilder.java @@ -22,7 +22,7 @@ * Builder class for configuring EntraID token authentication. * This class provides methods to set various configuration options for EntraID token authentication. * It extends the TokenAuthConfig.Builder class and implements AutoCloseable. - * + * *

Default values:

*
    *
  • DEFAULT_EXPIRATION_REFRESH_RATIO: 0.75F
  • @@ -31,22 +31,22 @@ *
  • DEFAULT_MAX_ATTEMPTS_TO_RETRY: 5
  • *
  • DEFAULT_DELAY_IN_MS_TO_RETRY: 100 (0.1 second)
  • *
- * + * *

Configuration options:

*
    *
  • {@link #clientId(String)}: Sets the client ID.
  • *
  • {@link #secret(String)}: Sets the client secret and configures access with secret.
  • - *
  • {@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate, + *
  • {@link #key(PrivateKey, X509Certificate)}: Sets the private key and certificate, * and configures access with certificate.
  • *
  • {@link #authority(String)}: Sets the authority URL.
  • *
  • {@link #systemAssignedManagedIdentity()}: Configures system-assigned managed identity.
  • - *
  • {@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}: + *
  • {@link #userAssignedManagedIdentity(UserManagedIdentityType, String)}: * Configures user-assigned managed identity.
  • *
  • {@link #customEntraIdAuthenticationSupplier(Supplier)}: Sets a custom authentication supplier.
  • *
  • {@link #scopes(Set)}: Sets the scopes for the token request.
  • *
  • {@link #tokenRequestExecTimeoutInMs(int)}: Sets the token request execution timeout in milliseconds.
  • *
- * + * *

Usage:

*
  * {@code
@@ -58,7 +58,7 @@
  *     .build();
  * }
  * 
- * + * *

Note:

*
    *
  • Only one of ServicePrincipal, ManagedIdentity or customEntraIdAuthenticationSupplier can be configured.
  • @@ -67,10 +67,10 @@ * For more information and details on how to use, please see: *

    https://github.com/redis/jedis/blob/master/docs/advanced-usage.md#token-based-authentication *

    https://github.com/redis/lettuce/blob/main/docs/user-guide/connecting-redis.md#microsoft-entra-id-authentication - * + * * @see TokenAuthConfig.Builder * @see AutoCloseable - * + * */ public class EntraIDTokenAuthConfigBuilder extends TokenAuthConfig.Builder implements AutoCloseable { @@ -187,7 +187,7 @@ public TokenAuthConfig build() { } @Override - public void close() throws Exception { + public void close() { clientId = null; secret = null; key = null;