Skip to content

Conversation

@benrr101
Copy link
Contributor

Description: Backporting rewriting MSAL application building code to use CreateWithApplicationOptions and avoid (formerly) undocumented APIs. See #3354 for full details of change.

@benrr101 benrr101 requested review from a team and Copilot May 19, 2025 17:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR backports changes to the MSAL application building code to use CreateWithApplicationOptions, avoiding the previously undocumented APIs.

  • Refactors the creation of client application instances using the new builder pattern.
  • Adjusts platform-specific logic using conditional compilation directives.

@benrr101 benrr101 changed the title 5.1 | APIScan | MSAL WithClientName 5.2 | APIScan | MSAL WithClientName May 19, 2025
return publicClientApplication;
}

private static TokenCredentialData CreateTokenCredentialInstance(TokenCredentialKey tokenCredentialKey, string secret)
Copy link
Contributor

Choose a reason for hiding this comment

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

unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, I just made a mistake...

@benrr101 benrr101 requested review from Copilot and mdaigle May 19, 2025 21:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Backports MSAL application builder code to use CreateWithApplicationOptions and remove reliance on formerly undocumented APIs.

  • Replaces chained Create(...).WithX calls with a single CreateWithApplicationOptions initializer.
  • Refactors platform-specific parent-window logic into separate WithParentActivityOrWindow invocations.

@codecov
Copy link

codecov bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.59%. Comparing base (96b33b6) to head (32f30b7).
Report is 1 commits behind head on release/5.2.

Files with missing lines Patch % Lines
...SqlClient/ActiveDirectoryAuthenticationProvider.cs 91.66% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release/5.2    #3359      +/-   ##
===============================================
- Coverage        72.68%   72.59%   -0.09%     
===============================================
  Files              310      310              
  Lines            61933    61930       -3     
===============================================
- Hits             45013    44961      -52     
- Misses           16920    16969      +49     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 76.87% <100.00%> (-0.12%) ⬇️
netfx 70.26% <91.66%> (-0.01%) ⬇️

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.

@benrr101 benrr101 merged commit 0b1f00b into release/5.2 May 23, 2025
142 checks passed
@benrr101 benrr101 deleted the dev/russellben/apiscan-msal-5.2 branch May 23, 2025 16:19
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.

4 participants