-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate access token for a Managed identity #548
Comments
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
![image](https://user-images.githubusercontent.com/14977219/230216319-4dae8af3-5472-4427-82ff-f55a425d83ba.png)
Code is still running and no token is generated.
The MSAL Python version you are using
1.21.0
The text was updated successfully, but these errors were encountered: