@@ -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();
@@ -341,7 +339,6 @@ private static RedisClient createLettuceRedisClient(String hostName, int port, T
341
339
* Redis Credential Implementation for Azure Redis for Cache
342
340
*/
343
341
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.
345
342
private TokenRequestContext tokenRequestContext = new TokenRequestContext ()
346
343
.addScopes(" https://redis.azure.com/.default" );
347
344
private TokenCredential tokenCredential;
@@ -427,7 +424,6 @@ private static String extractUsernameFromToken(String token) {
427
424
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder (). build();
428
425
429
426
// 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.
431
427
TokenRequestContext trc = new TokenRequestContext (). addScopes(" https://redis.azure.com/.default" );
432
428
AccessToken accessToken = getAccessToken(defaultAzureCredential, trc);
433
429
@@ -774,7 +770,6 @@ private static String extractUsernameFromToken(String token) {
774
770
DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilder (). build();
775
771
776
772
// 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.
778
773
TokenRequestContext trc = new TokenRequestContext (). addScopes(" https://redis.azure.com/.default" );
779
774
780
775
// Instantiate the Token Refresh Cache, this cache will proactively refresh the access token 2 minutes before expiry.
0 commit comments