Skip to content

Commit feb4ccc

Browse files
committed
Remove comments about scope change
1 parent ba5e4dd commit feb4ccc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sdk/identity/azure-identity/src/samples/Azure-Cache-For-Redis/Lettuce/Azure-AAD-Authentication-With-Lettuce.md

-5
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ System.out.println(sync.get("Az:testKey"));
110110
* Redis Credential Implementation for Azure Redis for Cache
111111
*/
112112
public static class AzureRedisCredentials implements RedisCredentials {
113-
// Note: The Scopes value will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
114113
private TokenRequestContext tokenRequestContext = new TokenRequestContext()
115114
.addScopes("https://redis.azure.com/.default");
116115
private TokenCredential tokenCredential;
@@ -195,7 +194,6 @@ private static String extractUsernameFromToken(String token) {
195194
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();
196195

197196
// Fetch a Microsoft Entra token to be used for authentication. The Microsoft Entra token will be used as password.
198-
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
199197
String token = defaultAzureCredential
200198
.getToken(new TokenRequestContext()
201199
.addScopes("https://redis.azure.com/.default")).block().getToken();
@@ -341,7 +339,6 @@ private static RedisClient createLettuceRedisClient(String hostName, int port, T
341339
* Redis Credential Implementation for Azure Redis for Cache
342340
*/
343341
public static class AzureRedisCredentials implements RedisCredentials {
344-
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
345342
private TokenRequestContext tokenRequestContext = new TokenRequestContext()
346343
.addScopes("https://redis.azure.com/.default");
347344
private TokenCredential tokenCredential;
@@ -427,7 +424,6 @@ private static String extractUsernameFromToken(String token) {
427424
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();
428425

429426
// Fetch a Microsoft Entra token to be used for authentication. This token will be used as the password.
430-
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
431427
TokenRequestContext trc = new TokenRequestContext().addScopes("https://redis.azure.com/.default");
432428
AccessToken accessToken = getAccessToken(defaultAzureCredential, trc);
433429

@@ -774,7 +770,6 @@ private static String extractUsernameFromToken(String token) {
774770
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();
775771

776772
// Fetch a Microsoft Entra token to be used for authentication. This token will be used as the password.
777-
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
778773
TokenRequestContext trc = new TokenRequestContext().addScopes("https://redis.azure.com/.default");
779774

780775
// Instantiate the Token Refresh Cache, this cache will proactively refresh the access token 2 minutes before expiry.

0 commit comments

Comments
 (0)