Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent DefaultAzureCredential changing authentication method #10349

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

chlowell
Copy link
Member

With this, DefaultAzureCredential.get_token iterates over its collection of included credentials only when none has provided a token. After an included credential provides a token, DefaultAzureCredential.get_token always uses that credential directly. In addition to being more efficient this prevents unexpected changes of identity.

@chlowell chlowell added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Mar 17, 2020
@chlowell chlowell requested a review from xiangyan99 March 17, 2020 21:19
@chlowell chlowell requested a review from schaabs as a code owner March 17, 2020 21:19
@chlowell chlowell self-assigned this Mar 17, 2020
@adxsdk6
Copy link

adxsdk6 commented Mar 17, 2020

Can one of the admins verify this patch?

@chlowell chlowell merged commit cf1c244 into Azure:master Mar 26, 2020
@chlowell chlowell deleted the one-iteration branch March 26, 2020 17:44
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Mar 27, 2020
…into shared_credential

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  Update install link
  [Event Hubs]  Put uamqp.Message.properties into EventData.system_properties (Azure#10508)
  Sync eng/common directory with azure-sdk-tools repository (Azure#10531)
  Prevent DefaultAzureCredential changing authentication method (Azure#10349)
  Update Batch Data plane (Azure#10477)
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Mar 27, 2020
…into shared_credential_ta

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  Update install link
  [Event Hubs]  Put uamqp.Message.properties into EventData.system_properties (Azure#10508)
  Sync eng/common directory with azure-sdk-tools repository (Azure#10531)
  Prevent DefaultAzureCredential changing authentication method (Azure#10349)
  Update Batch Data plane (Azure#10477)
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Mar 27, 2020
…re-sdk-for-python into shared_credential_search

* 'shared_credential' of https://github.com/iscai-msft/azure-sdk-for-python:
  fixed test
  Update install link
  [Event Hubs]  Put uamqp.Message.properties into EventData.system_properties (Azure#10508)
  Sync eng/common directory with azure-sdk-tools repository (Azure#10531)
  Prevent DefaultAzureCredential changing authentication method (Azure#10349)
  Update Batch Data plane (Azure#10477)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants