Closed pievalentin closed 1 year ago
Hi @pievalentin , your code snippet is using a different library, Azure SDK for Python, so, you would want to create a similar github issue there.
This repo here is about Microsoft Authentication Library (MSAL) for Python. MSAL Python is currently implementing Managed Identity feature. If you are interested in trying out the bleeding edge, you can follow the instruction in #480 to try it out.
Oh my bad. Thanks a lot for the kind and fast help @rayluo. Will try what you suggested on my company laptop tomorrow morning!
My azureml environment is very restricted (SSL inspection), I have some trouble installing your draft PR. I am still working on it.
@rayluo - is this PR not merged? I though MSAL Py supports MI now. Can you please post a link to the sample and docs?
Bug description
I am an Azure costumer. I can't use MSAL to generate an access token for the scope of my app reg using my managed identity.
I have this setup:
It might be related to #58
To Reproduce
The code will run indefinitely
Expected behavior After running
token = cred.get_token("api://<app-reg-client-id>/.default")
the token should be generatedWhat you see instead Code is still running and no token is generated.
The MSAL Python version you are using 1.21.0