@@ -110,7 +110,6 @@ System.out.println(sync.get("Az:testKey"));
110
110
* Redis Credential Implementation for Azure Redis for Cache
111
111
*/
112
112
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.
114
113
private TokenRequestContext tokenRequestContext = new TokenRequestContext ()
115
114
.addScopes(" https://redis.azure.com/.default" );
116
115
private TokenCredential tokenCredential;
@@ -195,7 +194,6 @@ private static String extractUsernameFromToken(String token) {
195
194
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder (). build();
196
195
197
196
// 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.
199
197
String token = defaultAzureCredential
200
198
.getToken(new TokenRequestContext ()
201
199
.addScopes(" https://redis.azure.com/.default" )). block(). getToken();
@@ -340,7 +338,6 @@ private static RedisClient createLettuceRedisClient(String hostName, int port, T
340
338
* Redis Credential Implementation for Azure Redis for Cache
341
339
*/
342
340
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.
344
341
private TokenRequestContext tokenRequestContext = new TokenRequestContext ()
345
342
.addScopes(" https://redis.azure.com/.default" );
346
343
private TokenCredential tokenCredential;
@@ -426,7 +423,6 @@ private static String extractUsernameFromToken(String token) {
426
423
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder (). build();
427
424
428
425
// 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.
430
426
TokenRequestContext trc = new TokenRequestContext (). addScopes(" https://redis.azure.com/.default" );
431
427
AccessToken accessToken = getAccessToken(defaultAzureCredential, trc);
432
428
@@ -773,7 +769,6 @@ private static String extractUsernameFromToken(String token) {
773
769
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder (). build();
774
770
775
771
// 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.
777
772
TokenRequestContext trc = new TokenRequestContext (). addScopes(" https://redis.azure.com/.default" );
778
773
779
774
// Instantiate the Token Refresh Cache, this cache will proactively refresh the access token 2 minutes before expiry.
0 commit comments