You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Identity] Multi-tenant authentication doesn't work with async ClientSecretCredential #21289
This issue will likely also exist for any other credential that uses the async AadClient to make token requests. Passing a tenant_id kwarg to the async ClientSecretCredential's get_token method raises an error because the kwarg makes its way into a call to AsyncPipeline.run and is unexpected.
To reproduce on Python 3.10 and azure-identity 1.7.0:
This error can be resolved by popping the tenant_id kwarg on the line before this AsyncPipeline.run call, but tenant_id most likely still needs to be provided to AadClient.obtain_token_by_* methods because it's used by _get_client_secret_request.
Activity