Repository navigation
fix(msal): Deploy platform MSAL assets under SkiaRenderer - #24055
Conversation
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
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
There was a problem hiding this comment.
Pull request overview
This PR fixes MSAL runtime asset selection when UnoFeatures=SkiaRenderer is enabled, ensuring Uno.UI.MSAL.dll follows the WinRT-layer (platform) asset routing instead of always being replaced by the Skia/no-op flavor, restoring WithUnoHelpers() behavior on Android/iOS/WASM (issue #20601).
Changes:
- Extends the WinRT-assembly allowlist in
RuntimeAssetsSelectorTaskto includeuno.ui.msalso platform-specific MSAL helpers are deployed under two-layer mode. - Improves diagnosability by logging WinRT-layer redirections and failing fast with explicit errors when expected WinRT-layer assets are missing.
- Updates the
Microsoft.Identity.Clientdependency floor for net10 mobile TFMs inUno.WinUI.MSAL.nuspecto4.72.1.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs |
Treats Uno.UI.MSAL as a WinRT-layer assembly in two-layer asset routing; adds missing-asset checks and redirect logging. |
build/nuget/Uno.WinUI.MSAL.nuspec |
Aligns net10 mobile dependency floor for Microsoft.Identity.Client to match compiled assemblies. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24055/wasm-skia-net9/index.html |
Adds UI/Authentication.MsalDemo, a single-project Uno sample that signs users in with MSAL.NET against Microsoft Entra ID and calls Microsoft Graph with the acquired token. It targets Android, iOS, WebAssembly and Desktop and uses only Uno.WinUI.MSAL and Microsoft.Identity.Client - no Uno.Extensions, no host builder, no DI container - so the authentication service can be lifted into an app of any shape. The sample narrates the flow a production app should use (token cache -> AcquireTokenSilent -> MsalUiRequiredException -> AcquireTokenInteractive) step by step in the UI, shows the redirect URI each head computes, and ships MSAL-SETUP.md covering the Entra ID registration, the per-platform redirect URIs, the project requirements per head, and a troubleshooting table for the MSAL error codes this setup runs into most often. MsalConfig.ClientId ships as the all-zeros placeholder for users to replace with their own registration. GetOrCreateApp currently supplies the parent Activity/UIViewController by hand behind #if ANDROID/#elif IOS, with .WithUnoHelpers() commented out directly above it. This is a temporary workaround for unoplatform/uno#20601: with the SkiaRenderer feature enabled every head loads the skia flavour of Uno.UI.MSAL, where .WithUnoHelpers() is a no-op, leaving MSAL with no parent Activity on Android. The fix is unoplatform/uno#24055; once it ships the #if block should be deleted and the single .WithUnoHelpers() call restored. The workaround is flagged in the code, in MSAL-SETUP.md and in the sample README. Verified: all four heads build clean (0 warnings, 0 errors) on the pinned stable Uno.Sdk 6.6.42. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VCXPT7YivhZReLWZnxK2Un
|
@Mergifyio backport release/backport/6.7 |
|
Tick the box to add this pull request to the merge queue (same as
|
❌ No backport have been createdDetails
GitHub error: |
…sample unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes, carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia (17872), and MSAL.WebUI.js is extracted to wwwroot and listed in config.uno_dependencies. The sample still documented the pre-fix behaviour throughout - that the browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does nothing there, and that interactive sign-in cannot complete in the browser. All of that is now false, and the #if ANDROID / #elif IOS workaround it described was already removed in e4c1ae9. Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the uno#20601 workaround block, folding the per-flavour table into "What supplies the platform-specific pieces"; rewrote the AuthenticationService remarks as a per-head description of what .WithUnoHelpers() supplies; rewrote the WebAssembly entry in PlatformGuide and the Android/iOS steps that described the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters again now that a popup is opened; and replaced the "nothing fixes this" troubleshooting row with blocked-popup and COOP rows. Statements that remain true are kept: .WithUnoHelpers() really is a no-op in the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs nothing from Uno there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
|
@Mergifyio backport release/stable/6.7 |
✅ Backports have been createdDetails
|
…n-in Restores, with concrete versions, the note dropped in 4a8c2ad. That note was removed as obsolete once unoplatform/uno#24055 merged, but it is not obsolete for consumers: the fix is in Uno.WinUI's build tasks, so no package reference in an app expresses it, and it landed after the 6.7.x releases - verified by scanning the shipped Uno.UI.Tasks assemblies, where the allowlist entry is present in 6.8.0-dev.21 and later and absent in every 6.7.x. Without it the runtime-asset selector swaps Uno.UI.MSAL.dll for its no-op Skia flavor, WithUnoHelpers() does nothing, and interactive sign-in silently never appears on Android, iOS or WebAssembly. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DXaphwJj5JkL8svAvxnVnu
Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising $(UnoVersion) is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (UnoVersion 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference - Packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op; docs corrected, since they claimed no package reference expressed it - BREAKING: drop net9.0-maccatalyst from Uno.Extensions.Navigation.Toolkit. ModalFlyout.xaml uses utu:NativeFramePresenter in an <ios:> template and Uno's `ios` XAML namespace also matches catalyst, but Uno.Toolkit stopped shipping a maccatalyst assembly at 8.5.0-dev.29 (still true in stable 9.x). Catalyst consumers now resolve the package's net9.0 TFM and the not_mobile template - the presentation the desktop template already gave them - Suppress IL2026 on the Exception-typed attached DP in Reactive.UI: browserwasm runs the trim analyzer, and RegisterAttached's propertyType reaches Exception.TargetSite. The property only stores the instance; nothing reads it Verified with msbuild (dotnet build cannot build XAML-bearing WinUI libraries here at all - UNOB0008, true on 6.0.67 too): 0 errors, and 1562 unit tests pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DXaphwJj5JkL8svAvxnVnu
…6.7/pr-24055 fix(msal): Deploy platform MSAL assets under SkiaRenderer (backport #24055)
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…a mobile Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships in Uno.WinUI, which these packages already depend on, so raising the Uno version is what expresses the requirement. - Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step, or the heads sit below the libraries they reference. The packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet; the migration guide says so - Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild 17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a Windows image with MSBuild 18 - Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm runs the trim analyzer with this Uno, and RegisterAttached's propertyType reaches Exception.TargetSite; the property only stores the instance Docs: the minimum-version section of the migration guide and the how-to's prerequisite. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
…sample unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes, carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia (17872), and MSAL.WebUI.js is extracted to wwwroot and listed in config.uno_dependencies. The sample still documented the pre-fix behaviour throughout - that the browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does nothing there, and that interactive sign-in cannot complete in the browser. All of that is now false, and the #if ANDROID / #elif IOS workaround it described was already removed in e4c1ae9. Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the uno#20601 workaround block, folding the per-flavour table into "What supplies the platform-specific pieces"; rewrote the AuthenticationService remarks as a per-head description of what .WithUnoHelpers() supplies; rewrote the WebAssembly entry in PlatformGuide and the Android/iOS steps that described the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters again now that a popup is opened; and replaced the "nothing fixes this" troubleshooting row with blocked-popup and COOP rows. Statements that remain true are kept: .WithUnoHelpers() really is a no-op in the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs nothing from Uno there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
…sample unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes, carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia (17872), and MSAL.WebUI.js is extracted to wwwroot and listed in config.uno_dependencies. The sample still documented the pre-fix behaviour throughout - that the browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does nothing there, and that interactive sign-in cannot complete in the browser. All of that is now false, and the #if ANDROID / #elif IOS workaround it described was already removed in e4c1ae9. Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the uno#20601 workaround block, folding the per-flavour table into "What supplies the platform-specific pieces"; rewrote the AuthenticationService remarks as a per-head description of what .WithUnoHelpers() supplies; rewrote the WebAssembly entry in PlatformGuide and the Android/iOS steps that described the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters again now that a popup is opened; and replaced the "nothing fixes this" troubleshooting row with blocked-popup and COOP rows. Statements that remain true are kept: .WithUnoHelpers() really is a no-op in the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs nothing from Uno there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
- 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]>
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