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

Use provided authority port when building the tenant discovery endpoint #484

Closed sarathys closed 2 years ago

sarathys commented 2 years ago

Add support for authority (STS) endpoint hosted on non-443 port. This allows Azure CLI to use STS and Graph hosted on different endpoints. e.g.

>  az cloud show -n DevEnv
{
  "endpoints": {
    "activeDirectory": "https://localhost:3001",
    "activeDirectoryDataLakeResourceId": "https://datalake.azs/",
    "activeDirectoryGraphResourceId": "https://localhost:3002/v1.0/",
    "activeDirectoryResourceId": "https://login.azs",
...
  },
  "isActive": false,
  "name": "DevEnv",
  "profile": "latest",
  "suffixes": {
   ...
  }
}

This change will allow such configuration for Azure CLI and users can use az login to use it.

See https://github.com/Azure/azure-cli/issues/22553 for the error we get without this change.