File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
content/develop/clients/go Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,23 @@ options := entraid.CredentialsProviderOptions{
152
152
}
153
153
```
154
154
155
- These options are explained below:
155
+ You can then pass this configuration when you create the
156
+ ` StreamingCredentialsProvider ` . The example below shows how to do this
157
+ with the ` NewManagedIdentityCredentialsProvider() ` method:
158
+
159
+ ``` go
160
+ provider , err := entraid.NewManagedIdentityCredentialsProvider (
161
+ entraid.ManagedIdentityCredentialsProviderOptions {
162
+ CredentialsProviderOptions : options,
163
+ ManagedIdentityProviderOptions : identity.ManagedIdentityProviderOptions {
164
+ ManagedIdentityType: identity.UserAssignedObjectID ,
165
+ UserAssignedObjectID: " <your-user-assigned-client-id>" ,
166
+ },
167
+ },
168
+ )
169
+ ```
170
+
171
+ The fields of ` TokenManagerOptions ` are explained below:
156
172
157
173
- ` ExpirationRefreshRatio ` : A ` float ` value representing the fraction
158
174
of a token's lifetime that should elapse before attempting to
You can’t perform that action at this time.
0 commit comments