Open
Conversation
bgavrilMS
reviewed
Feb 20, 2026
| - an error response would contain "error" and usually "error_description". | ||
| """ | ||
| data = kwargs.pop("data", {}) | ||
| data["fmi_path"] = fmi_path |
Member
There was a problem hiding this comment.
Are the tokens cached like in MSAL .NET and MSAL GO? I don't think they are.
I see a PR here that look at proper caching #759 but I am not sure it is compliant with the rest.
bgavrilMS
reviewed
Feb 20, 2026
| self.token_cache.remove_at(at) | ||
| # acquire_token_for_client() obtains no RTs, so we have no RT to remove | ||
|
|
||
| def acquire_token_for_client_with_fmi_path(self, scopes, fmi_path, claims_challenge=None, **kwargs): |
Member
There was a problem hiding this comment.
Should we have FMI path as one of the kwargs instead? Creating an entire new API seems pretty heavy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
acquire_token_for_client_with_fmi_path()for FMI supportAdds a new method to
ConfidentialClientApplicationfor acquiring tokens with a Federated Managed Identity (FMI) path. It wrapsacquire_token_for_client(), injectingfmi_pathinto the request body while preserving all existing caching, telemetry, and regional endpoint behavior.Usage
E2E test
Added E2E test to msid client