Closed neha-bhargava closed 1 year ago
Thanks for the heads-up, Neha. MSAL Python handled the nested error format in Cloud Shell.
I meant to double check it by running a live test in Cloud Shell, but my Cloud Shell dev environment seems to be lost. Regardless, it have been tested when that code path was written 18 months ago.
As observed in Java and dotnet, the managed identity error response for cloud shell was not getting parsed since the error message is one level down in the JSON.
The error response for cloud shell is different and needs to be handled differently to get the error message.
Currently for managed identity error response we only look at the top level for error message and error response. For cloud shell the error message is one level down in the json.
Sample error response from cloud shell when a wrong scope is passed.
Verify if the cloud shell error response is parsed correctly to propagate the correct error message from the server.