kylebarron commented on issue #290:
URL: 
https://github.com/apache/arrow-rs-object-store/issues/290#issuecomment-2813180557

   > Hmm... I guess the subsequent creation of the `TokenCredentialProvider` 
succeeds too?
   
   Yes, that will never fail.
   
   `ImdsManagedIdentityProvider` can't be evaluated in `build()` because it 
requires a network call and therefore must be async. It appears that no part of 
fetching the Azure CLI token is actually async, so in principle you could 
synchronously try to fetch credentials from the CLI as part of `build()`, and 
if that fails, then you fall back to IMDS.
   
   
https://github.com/apache/arrow-rs-object-store/blob/7272f70fd345cdb2cc61212adae5191f2b9fc6f9/src/azure/credential.rs#L880-L946


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to