Skip to content

Commit e7239e1

Browse files
committed
Remove comments about scope change
1 parent 419b0c7 commit e7239e1

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

Lines changed: 0 additions & 5 deletions
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();
@@ -340,7 +338,6 @@ private static RedisClient createLettuceRedisClient(String hostName, int port, T
340338
* Redis Credential Implementation for Azure Redis for Cache
341339
*/
342340
public static class AzureRedisCredentials implements RedisCredentials {
343-
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
344341
private TokenRequestContext tokenRequestContext = new TokenRequestContext()
345342
.addScopes("https://redis.azure.com/.default");
346343
private TokenCredential tokenCredential;
@@ -426,7 +423,6 @@ private static String extractUsernameFromToken(String token) {
426423
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();
427424

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

@@ -773,7 +769,6 @@ private static String extractUsernameFromToken(String token) {
773769
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder().build();
774770

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

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

0 commit comments

Comments
 (0)