Skip to content

Improve behavior related to assertions#988

Merged
Avery-Dunn merged 4 commits intoavdunn/fix-assertion-refreshfrom
avdunn/improve-credentials
Sep 11, 2025
Merged

Improve behavior related to assertions#988
Avery-Dunn merged 4 commits intoavdunn/fix-assertion-refreshfrom
avdunn/improve-credentials

Conversation

@Avery-Dunn
Copy link
Copy Markdown
Contributor

@Avery-Dunn Avery-Dunn commented Sep 4, 2025

Fixes behavior related to assertions in two areas:

This PR fixes both issues and generally improves the parts of the codebase where these assertions are used:

  • Adjusts ClientAssertion and ClientCredentialFactory to properly call the callback whenever the assertion is needed
  • Adjusts TokenRequestExecutor to optionally use the tenant from the request to create assertions, and refactors several methods to be simpler and more manageable
  • Adds a new method to Authority to help with overriding the tenant in an authority
  • New tests in ClientCertificateTest and ClientCertificateTest to cover the new behavior and fill some gaps

This branch was based off the one in #986, so it must be handled first.

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner September 4, 2025 23:28
Avery-Dunn and others added 3 commits September 9, 2025 14:20
…ntials

# Conflicts:
#	msal4j-sdk/src/test/java/com/microsoft/aad/msal4j/ClientCredentialTest.java
@Avery-Dunn Avery-Dunn merged commit cabae29 into avdunn/fix-assertion-refresh Sep 11, 2025
3 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.

2 participants