azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Cloud Shell ManagedIdentitySource should throw if a user-assigned managed identity clientID or resourceID is supplied

Open christothes opened this issue 1 year ago • 1 comments

If the Cloud Shell ManagedIdentitySource is detected via MSAL and a user-assigned managed identity clientID or resourceID is supplied, the ManagedIdentityCredential should throw.

The rationale for taking this minor breaking change is that CloudShell does not support specifying a clientID or ResourceID and the current behavior of silently falling back to attempting to use a system-assigned identity could be unexpected.

christothes avatar Jul 11 '24 17:07 christothes

Thank you for your feedback. Tagging and routing to the team member best able to assist.

github-actions[bot] avatar Jul 11 '24 17:07 github-actions[bot]

After discussion with the Java architects, Java will continue throwing in getToken instead of in the constructor.

billwert avatar Oct 02 '24 23:10 billwert