File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
examples/entraid/managedidentity_systemassigned_min Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"config"
11
11
12
12
entraid "github.com/redis/go-redis-entraid"
13
+ "github.com/redis/go-redis-entraid/identity"
13
14
"github.com/redis/go-redis/v9"
14
15
)
15
16
@@ -23,7 +24,11 @@ func main() {
23
24
}
24
25
25
26
// Create a managed identity credentials provider for system-assigned identity
26
- cp , err := entraid .NewManagedIdentityCredentialsProvider (entraid.ManagedIdentityCredentialsProviderOptions {})
27
+ cp , err := entraid .NewManagedIdentityCredentialsProvider (entraid.ManagedIdentityCredentialsProviderOptions {
28
+ ManagedIdentityProviderOptions : identity.ManagedIdentityProviderOptions {
29
+ ManagedIdentityType : identity .SystemAssignedIdentity ,
30
+ },
31
+ })
27
32
if err != nil {
28
33
log .Fatalf ("Failed to create credentials provider: %v" , err )
29
34
}
You can’t perform that action at this time.
0 commit comments