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

Adopt MSAL managed identity implementation #24156

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

chlowell
Copy link
Member

Closes #20409. This is mostly straightforward refactoring, however the switch broke most of our tests because MSAL uses a per-process cache for managed identity tokens whereas we used a per-client cache.

@chlowell chlowell self-assigned this Feb 25, 2025
@chlowell chlowell marked this pull request as ready for review February 25, 2025 00:16
@chlowell chlowell requested review from jhendrixMSFT, RickWinter and a team as code owners February 25, 2025 00:16
res, err := req.Next()
if err == nil {
// if the response is a recording mismatch, return it as a simple error that prints clearly in the test log
if e := res.Header.Get("x-request-mismatch-error"); e != "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems duplicated from your same change in /sdk/internal. I guess that hasn't been released yet though. Will this go away once that happens?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll remove this before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

Use MSAL for managed identity token requests
2 participants