ManagedIdentityCredential should not do in-place mutation of Scopes #15308
Labels
Azure.Identity
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Milestone
Bug Report
ManagedIdentityCredential
receives a list of scopes as input and internally converts them to a resource ID (#14693).There's a problem that
ManagedIdentityCredential
is actually mutates the original array, which creates an unexpected side-effect for the calling code:This line is responsible for in-place mutation of the input array.
Mutation should not happen since conversion from scopes to resource ID is implementation detail which should not affect calling code.
The text was updated successfully, but these errors were encountered: