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
756 stars 191 forks source link

Adjustment for new CIAM partition #564

Closed rayluo closed 1 year ago

rayluo commented 1 year ago

Our lab switched to a new CIAM test tenant.

The two lab API were also updated:

  1. Get a test user and its test app from lab (Same API, different value in response)
  2. Get that app's authority and scope. Note: You shall NOT hardcode the test app's client id "ced7..." into your test case's source code or even configuration file. Instead, read it on-the-fly from the appId field from the response of the first API above. This way, in the future when/if the lab switch to a different client_id, your existing test automation will not break.

There is one change needed in the Confidential Client's test case. No more hardcoded scope. The scope returned from lab API 2 will work out of the box.