AzureAD / microsoft-authentication-library-for-python

Microsoft Authentication Library (MSAL) for Python makes it easy to authenticate to Microsoft Entra ID. General docs are available here https://learn.microsoft.com/entra/msal/python/ Stable APIs are documented here https://msal-python.readthedocs.io. Questions can be asked on www.stackoverflow.com with tag "msal" + "python".
https://stackoverflow.com/questions/tagged/azure-ad-msal+python
Other
770 stars 192 forks source link

Managed Identity for Azure VM, App Service, Service Fabric, etc. #480

Closed rayluo closed 1 month ago

rayluo commented 2 years ago

Note: This is a proof-of-concept, which means there is no guarantee that this behavior will be eventually included into MSAL Python.

There are two new APIs added.

More details of the new APIs are available here.

Note:

Once merged, this PR will resolve #548. Also, it will officially close #487 as the callback is no longer needed.

jiasli commented 1 year ago

Cloud Shell is just one type of managed identity. Perhaps we should follow the same interface for Cloud Shell?

bgavrilMS commented 9 months ago

@rayluo - is this the "public preview" branch? Does MSI support include all 5 sources such as CloudShell and Azure ARC?

bgavrilMS commented 9 months ago

Do we have any feedback from Azure SDK / other customers? Is it ok to close on this?

rayluo commented 9 months ago

@rayluo - is this the "public preview" branch? Does MSI support include all 5 sources such as CloudShell and Azure ARC?

Yes.

Do we have any feedback from Azure SDK / other customers? Is it ok to close on this?

No feedback yet. There seems to be no partner in urgent need of this. We will keep an eye on this, while we are actively working on SLC.

vmarcella commented 5 months ago

@rayluo Are there any updates on when this will move out of public preview and into the official MSAL package?

rayluo commented 5 months ago

@rayluo Are there any updates on when this will move out of public preview and into the official MSAL package?

We are getting close. Some of our partner teams are testing it, as we speak. At least one needed improvement on Arc is identified.

You can also test/use it, and report your findings. @vmarcella

AlmogBentz commented 4 months ago

Hello @rayluo , it's been a long time do I understand correctly that this will push the ability to get creds from managed identity with MSAL? if so is there a timeline?

bgavrilMS commented 4 months ago

Hello @rayluo , it's been a long time do I understand correctly that this will push the ability to get creds from managed identity with MSAL? if so is there a timeline?

We aim to GA this by end of March @AlmogBentz, but it depends on testing etc. etc.

Note that Azure SDK (including the Python version) fully supports Managed Identity - https://learn.microsoft.com/en-us/python/api/overview/azure/identity-readme?view=azure-python

bgavrilMS commented 3 months ago

@rayluo - for the higher level API bear in mind that:

I recommend you split the higher level API from the lower level one.

arsdragonfly commented 3 months ago

Is there an ETA for a new release with this feature?

rayluo commented 3 months ago

Is there an ETA for a new release with this feature?

@arsdragonfly , priorities may change, so we don't provide an ETA. You may go ahead to use this PR's feature branch as a preview (pip install --force-reinstall "git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@mi"); and subscribe/watch this repo to receive its release notifications.

jiasli commented 1 month ago

Congratulations on MSAL's support for managed identity. I am sure our customers will benefit from this great new feature! 🎉

yonzhan commented 1 month ago

[heart] Yong Zhang reacted to your message:


From: Jiashuo Li @.> Sent: Monday, June 24, 2024 12:09:02 PM To: AzureAD/microsoft-authentication-library-for-python @.> Cc: Subscribed @.***> Subject: Re: [AzureAD/microsoft-authentication-library-for-python] Managed Identity for Azure VM, App Service, Service Fabric, etc. (PR #480)

Congratulations on MSAL's support for managed identity. I am sure our customers will benefit from this great new feature! 🎉

— Reply to this email directly, view it on GitHubhttps://github.com/AzureAD/microsoft-authentication-library-for-python/pull/480#issuecomment-2186426299, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM4LM2CVUJ2OZR5RHJFHZBDZJAD55AVCNFSM5XVXKEA2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJYGY2DENRSHE4Q. You are receiving this because you are subscribed to this thread.Message ID: @.***>