File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
sdk/identity/azure-identity
src/samples/Azure-Cache-For-Redis/Lettuce Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
### Breaking Changes
8
8
9
9
### Bugs Fixed
10
+ - Fix invalid scope in Lettuce sample using identity for Redis Cache.
10
11
11
12
### Other Changes
12
13
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ System.out.println(sync.get("Az:testKey"));
112
112
public static class AzureRedisCredentials implements RedisCredentials {
113
113
// Note: The Scopes value will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
114
114
private TokenRequestContext tokenRequestContext = new TokenRequestContext ()
115
- .addScopes(" cca5fbb-b7e4-4009-81f1-37e38fd66d78 /.default" );
115
+ .addScopes(" https://redis.azure.com /.default" );
116
116
private TokenCredential tokenCredential;
117
117
private final String username;
118
118
@@ -198,7 +198,7 @@ DefaultAzureCredential defaultAzureCredential = new DefaultAzureCredentialBuilde
198
198
// Note: The Scopes parameter will change as the Microsoft Entra authentication support hits public preview and eventually GA's.
199
199
String token = defaultAzureCredential
200
200
.getToken(new TokenRequestContext ()
201
- .addScopes(" cca5fbb-b7e4-4009-81f1-37e38fd66d78 /.default" )). block(). getToken();
201
+ .addScopes(" https://redis.azure.com /.default" )). block(). getToken();
202
202
203
203
String username = extractUsernameFromToken(token);
204
204
You can’t perform that action at this time.
0 commit comments