Skip to content

Conversation

Avery-Dunn
Copy link
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
Co-authored-by: Neha Bhargava <61847233+neha-bhargava@users.noreply.github.com>
…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