-
Notifications
You must be signed in to change notification settings - Fork 207
Description
Describe the bug
We're using code like this on App Service:
self.confidential_client = ConfidentialClientApplication(
server_app_id,
authority=self.authority,
client_credential=server_app_secret,
token_cache=PersistedTokenCache(persistence),
)
To Reproduce
Steps to reproduce the behavior:
Open Azure-Samples/azure-search-openai-demo#891 in a Codespace and follow README steps to deploy.
- Run
azd env set AZURE_USE_AUTHENTICATION true
to enable the login UI and App Service authentication. - Run
azd env set AZURE_AUTH_TENANT_ID <YOUR-TENANT-ID>
to set the tenant ID associated with authentication. - Run
azd up
to deploy the app.
Expected behavior
I don't expect to see warnings in the logs.
What you see instead
I see this warning:
WARNING:msal.application:Region configured (None) != region detected ('eastus2')
I read through https://msal-python.readthedocs.io/en/latest/index.html#msal.ClientApplication.params.azure_region but am still not sure what we should be doing on App Service, since it only explicitly mentions VMs and Functions. For App Service, should we keep it as None and avoid the warning? Or set it to our region? Or set it to True?
The MSAL Python version you are using
1.24.1