Repository navigation
fix(msal): Deploy platform MSAL assets under SkiaRenderer (backport #24055) - #24131
Merged
kazo0 merged 2 commits intoAug 23, 2026
Merged
Conversation
2 of 5 tasks
SergioAlmeida29
left a comment
Contributor
There was a problem hiding this comment.
LGTM
As it is a backport to #24055 that is already merged.
kazo0
approved these changes
Aug 20, 2026
kazo0
enabled auto-merge
August 20, 2026 14:51
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24131/wasm-skia-net9/index.html |
Under SkiaRenderer two-layer asset selection, Uno.UI.MSAL.dll was replaced by the no-op skia flavor on every head, so WithUnoHelpers() silently lost WithParentActivityOrWindow on Android/iOS and WasmWebUi/WasmHttpFactory on WebAssembly. Uno.UI.MSAL only depends on the WinRT layer (Uno.UWP), so add it to the WinRT assembly allowlist: Android/iOS heads now deploy and compile against the lib/netX.0-<platform> flavor, and WebAssembly deploys the uno-runtime/<tfm>/webassembly flavor. Missing expected assets now fail the build with a descriptive error instead of a late copy failure, and the WinRT-layer redirection is logged. Fixes #20601 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ (cherry picked from commit 0cc9dfe)
The net10.0 mobile dependency groups still pinned Microsoft.Identity.Client 4.61.3 while the assemblies are compiled against 4.72.1, letting NuGet resolve an older assembly than the one Uno.UI.MSAL was built against. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ (cherry picked from commit 063b5ce)
kazo0
force-pushed
the
mergify/bp/release/stable/6.7/pr-24055
branch
from
August 22, 2026 12:44
ec393b3 to
d33daf0
Compare
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24131/wasm-skia-net9/index.html |
Contributor
|
|
5 of 7 tasks
agneszitte
added a commit
to unoplatform/uno.extensions
that referenced
this pull request
Nov 3, 2026
- global.json: Uno.Sdk 6.8.0-dev.21 -> 6.7.18 (Uno.WinUI 6.7.65), Uno.Sdk.Private 6.8.0-dev.51 -> 6.7.65 - #3163 raised the floor to 6.8.0-dev.46 for the MSAL fix unoplatform/uno#24055. 6.7 has that fix too (unoplatform/uno#24131, in every public 6.7 release from 6.7.65 on), so 6.7 is enough, and 6.7 apps can take 7.4 in the 6.7 SR3 Uno.Sdk - samples/Directory.Packages.props: Windows SDK build tools 10.0.28000.2526 -> 10.0.28000.2705, what Uno.Sdk 6.7.18 supplies; Uno.Extensions.Hosting.WinUI requires it, and the Playground restore fails with NU1605 below it Co-Authored-By: Claude Opus 5.5 <[email protected]>
agneszitte
added a commit
to unoplatform/uno.extensions
that referenced
this pull request
Nov 3, 2026
- UpdatingExtensions.md: the minimum Uno version is now 6.7.65 (Uno.Sdk 6.7.18), with real 6.6 to 6.7 versions in the examples - HowTo-MsalAuthentication.md: the MSAL fix is in every public 6.7 release from 6.7.65 on (unoplatform/uno#24131), not only in 6.8 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
GitHub Issue: closes #20601
PR Type:
🐞 Bugfix
What changed? 🚀
Under
SkiaRenderer, the two-layer runtime asset selection (RuntimeAssetsSelectorTask) replacedUno.UI.MSAL.dllwith the no-opskiaflavor on every head, becauseIsWinRTAssemblyonly recognizeduno,uno.ui.dispatching, anduno.foundation. As a resultWithUnoHelpers()silently did nothing: no parentActivity/UIViewControlleron Android/iOS (MSAL fails withactivity_required), and noWasmWebUi/WasmHttpFactoryon WebAssembly (no popup flow at all). Full root-cause analysis in this issue comment.This PR:
uno.ui.msalto the WinRT assembly allowlist inRuntimeAssetsSelectorTask.Uno.UI.MSALonly depends on the WinRT layer (Uno.UWP) — verified: the shipped android flavor references onlyUno/Mono.Android/MSAL, the webassembly flavor references no Uno assemblies at all — so under the two-layer mode Android/iOS/tvOS/Catalyst heads now deploy (and compile against) thelib/netX.0-<platform>flavor, and WebAssembly deploys theuno-runtime/<tfm>/webassemblyflavor.Microsoft.Identity.Clientdependency floor for the net10 mobile groups inUno.WinUI.MSAL.nuspec(4.61.3 → 4.72.1, the version the assemblies are compiled against).No app-side or
Uno.WinUI.MSALpackage changes are required — the fix acts at app build time. This also transitively revivesUno.Extensions.Authentication.MSALinteractive sign-in on Skia heads (itsMsalAuthenticationProvidercallsWithUnoHelpers()on both the builder and the interactive request); the remaining desktop issues there (e.g. unoplatform/uno.extensions#3025 macOS token-cache setup) are a separate storage-layer concern.Validation
RuntimeAssetsSelectorTask_v0driven directly against a syntheticuno.winui.msalpackage layout — skia+android →lib/net10.0-android, skia+ios →lib/net10.0-ios26.0, skia+webassembly →uno-runtime/net10.0/webassembly, single-layer skia (desktop) unchanged, non-allowlisted assemblies keep the pre-fix routing, missing declared flavor throws.UnoFeatures=SkiaRenderer, all four heads): SHA-256 of the deployedUno.UI.MSAL.dllmatches the platform flavor on android/ios/wasm and stays on the skia flavor for desktop; app compiles with bare.WithUnoHelpers()(no#ifworkarounds).WasmWebUicompletes;MSAL.WebUI.jsembedded script is extracted and registered inuno-config.jsunder the Skia renderer). Desktop verified unaffected (system browser + loopback).Follow-ups intentionally not in this PR: checked-in unit tests for
Uno.UI.Tasks(no test project exists today), extendingRuntimeAssetsValidatorTaskto cover WinRT-layer assemblies, and the browserwasm__UNO__/HAS_UNO_*define gaps (#20875 / #17684) noted in the issue.PR Checklist ✅
Uno.UI.Taskstest project exists to host a checked-in test todayScreenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ
This is an automatic backport of pull request #24055 done by [Mergify](https://mergify.com).