From 2d032d8763decc44268a68f356a3182a7b6a7299 Mon Sep 17 00:00:00 2001 From: Andy Stark Date: Mon, 13 Jul 2026 12:55:18 +0100 Subject: [PATCH] DOC-6836 Rename resolveCredentials() to resolveCredentialsAsync() in Lettuce AMR docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lettuce PRs #3837/#3829/#3838 rename the credential-provider SPI: the RedisCredentialsProvider interface becomes CredentialsProvider and its resolveCredentials() method becomes resolveCredentialsAsync(). Updated the two call sites in the Entra ID / AMR page (one live snippet, one commented-out test line) to the new async name. Written against unmerged upstream diffs that target a "reactor-optional" feature branch, not main, so this is provisional. Parking until the rename actually ships in a released redis-authx-entraid artifact. The subtlety: our page uses redis-authx-entraid's TokenBasedRedisCredentialsProvider, not the lettuce-core class the PR diff edits, so the rename only reaches our readers once that separate artifact rebuilds against the new lettuce SPI and releases. Learned: the rename is a lettuce-core SPI change; it only affects our docs once redis-authx-entraid adopts the new lettuce and re-releases Recheck: when redis-authx-entraid releases a version whose TokenBasedRedisCredentialsProvider exposes resolveCredentialsAsync() Gaps: pinned redis-authx-entraid version left at 0.1.1-beta1 (lines 43/51) — page is intentionally inconsistent while parked; bump to the release that ships the rename on pickup Gaps: unverified whether resolveCredentials() survives as a deprecated alias (#3837 "deprecate" vs #3838 "remove") — if it does, our edit is preferred not strictly required Directive: do not merge until the rename ships in a released artifact AND the dependency version on this page is bumped to match Ticket: DOC-6836 Co-Authored-By: Claude Opus 4.8 (1M context) --- content/develop/clients/lettuce/amr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/develop/clients/lettuce/amr.md b/content/develop/clients/lettuce/amr.md index fd38e50ec7..5f41c9697e 100644 --- a/content/develop/clients/lettuce/amr.md +++ b/content/develop/clients/lettuce/amr.md @@ -89,7 +89,7 @@ test it by obtaining a token, as shown in the following example: ```java // Test that the Entra ID credentials provider can resolve credentials. -credentials.resolveCredentials() +credentials.resolveCredentialsAsync() .doOnNext(c-> System.out.println(c.getUsername())) .block(); ``` @@ -188,7 +188,7 @@ try (EntraIDTokenAuthConfigBuilder builder = EntraIDTokenAuthConfigBuilder.build } // Optionally test the credentials provider. -// credentialsSP.resolveCredentials().doOnNext(c -> System.out.println("SPI ID :" + c.getUsername())).block(); +// credentialsSP.resolveCredentialsAsync().doOnNext(c -> System.out.println("SPI ID :" + c.getUsername())).block(); // Enable automatic re-authentication. ClientOptions clientOptions = ClientOptions.builder()