Skip to content

Comments

Cache token when using Azure Identity#55

Merged
dalemyers merged 3 commits intomicrosoft:mainfrom
alanrmatthews:alanmatthews/azid_improvement
Feb 20, 2026
Merged

Cache token when using Azure Identity#55
dalemyers merged 3 commits intomicrosoft:mainfrom
alanrmatthews:alanmatthews/azid_improvement

Conversation

@alanrmatthews
Copy link
Contributor

The Azure Identity credential provider provides a unix-style timestamp of when the token expires. Instead of pulling a new token every time, cache the existing token (if it exists) until the expiration so we don't need to keep acquiring new tokens.

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@742ed16). Learn more about missing BASE report.

Files with missing lines Patch % Lines
simple_ado/auth/ado_azid_auth.py 50.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #55   +/-   ##
=======================================
  Coverage        ?   49.38%           
=======================================
  Files           ?       34           
  Lines           ?     2106           
  Branches        ?        0           
=======================================
  Hits            ?     1040           
  Misses          ?     1066           
  Partials        ?        0           
Flag Coverage Δ
unittests 49.38% <50.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dalemyers dalemyers merged commit 3df6d54 into microsoft:main Feb 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants