Repository navigation
Conversation
…aults - Default macOS keychain / Linux keyring storage properties so MsalCacheHelper no longer throws ArgumentNullException on desktop - Add KeychainServiceName/KeychainAccountName and opt-in AllowUnprotectedTokenCacheFallback (distinct plaintext file name) to the Msal configuration section - Verify persistence and degrade gracefully to an in-memory cache with an error log instead of a silently dead login button - Retry storage setup on the next login after a failed attempt instead of latching the failure for the app lifetime - Thread CancellationToken through setup and token acquisition and propagate original MSAL exceptions instead of rewrapping them - Skip persistence on WebAssembly (compiled out) and Android/iOS (MSAL persists natively there); drop dead vendored Msal.Wasm stubs - Add Uno.Extensions.Authentication.MSAL.Tests covering the storage defaults Fixes #3025 Fixes #2346 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
- The packaged targets gated the define on repo-internal _Is* properties that are never set in consumer projects, so UNO_EXT_MSAL leaked on for every TFM, including stub targets - Derive the platform from the TFM with an allow-list shared with the csproj (android/ios/windows/desktop/browserwasm), which is fail-safe for unknown future platforms Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
- Document per-target interactive sign-in and cache persistence, including the Skia-renderer note for unoplatform/uno#20601 - Document the keychain configuration keys and the opt-in unprotected cache fallback Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
- Investigation findings, plan, review-panel outcome, PR notes and follow-ups for #3025/#2346/#2438 and the define-gate fix Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
…spec 009 - UseAuthentication without UseToolkit fails on first LoginAsync with NoServiceRegistered (Uno.Extensions.ISettings): the key-value storage needs ISettings but only UseThemeSwitching registers it Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
- The key-value storages wired by UseStorage require ISettings, but the only registration lived in UseToolkit/UseThemeSwitching; apps using authentication without theme switching failed on first LoginAsync with NoServiceRegistered (Uno.Extensions.ISettings) - Register it (TryAdd) in UnoHost.CreateDefaultBuilder alongside UseStorage, and switch UseThemeSwitching to TryAdd semantics - Verified with a live rig: token cache resolves without UseToolkit (unit coverage isn't possible in a plain test host - the WinUI assembly's module initializer needs a runtime Uno.UI; see spec 009) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U7NWJJ8YrG8eXvPiGdgg1N
- .NET 10 reports macOS through the marketing string (e.g. "macOS 26.5.2") instead of a Darwin string; MSAL 4.72.1's DesktopOsHelper.IsMac() didn't recognize it, so StartDefaultOsBrowserAsync fell through every OS branch and threw PlatformNotSupportedException on any interactive sign-in from a desktop head running on macOS - Upstream AzureAD/microsoft-authentication-library-for-dotnet#5590, fixed in 4.80.0 by PR #5541; 4.87.0 is the latest stable and is what Uno.Sdk already injects on android/ios/wasm, so this collapses the desktop/mobile version split rather than just clearing the floor - testing/TestHarness is not cosmetic: CentralPackageTransitivePinningEnabled is true there, so its PackageVersion held MSAL down to 4.72.1 transitively despite no direct PackageReference - samples' MicrosoftIdentityClientVersion is currently referenced nowhere; bumped so it can't be wired up later and reintroduce the bug - Verified with a live rig: Release repack clean (no API breaks 4.72.1 -> 4.87.0), all 12 packed nuspec TFM groups read 4.87.0, and a consuming app resolves 4.87.0 on all four heads from this floor alone with no pin of its own. macOS desktop interactive sign-in confirmed working; android/ios/wasm sign-in not re-run Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y8qEC6KWZqBAkto9m3hqdy
MsalAuthenticationProvider set a redirect URI on exactly one of four heads
(WebAssembly), so every app hand-wrote an #if ANDROID / #elif IOS / #else block
in its Builder(...) callback just to get sign-in working.
- Android: msal{ClientId}://auth
- iOS: msauth.{BundleId}://auth
- WebAssembly: the WebAuthenticationBroker callback (unchanged value)
- Desktop: MSAL's WithDefaultRedirectUri() -> http://localhost
- WinAppSDK: unchanged; the WAM broker owns the redirect URI there
Behaviour change: defaults are applied *before* the app's Builder(...) callback,
so the callback now wins. WithWebRedirectUri() previously ran after it and
stomped the app on WebAssembly, forcing apps to mutate
WinRTFeatureConfiguration.WebAuthenticationBroker.DefaultReturnUri before host
build. Precedence is now platform default < configuration RedirectUri <
Builder(...) callback. Opt out with MsalConfiguration.UseDefaultPlatformRedirectUri.
MsalRedirectDefaults takes the platform as a parameter and is linked into
Uno.Extensions.Authentication.MSAL.Tests, following MsalStorageDefaults.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
…ches The redirect-URI defaults added in ab9939b had no test for the part that actually changed behaviour - the precedence between the platform default, configuration, and the app's Builder(...) callback. - MsalRedirectDefaults.Apply now owns the whole decision and reports it as an MsalRedirectDecision, so the provider is reduced to platform selection plus logging. The one Uno-only step (the WebAuthenticationBroker URI) is passed in as a delegate, keeping the helper loadable in a plain test host. - Given_MsalRedirectDefaults_Apply asserts through a genuinely built IPublicClientApplication (AppConfig.RedirectUri), so it also pins MSAL's own behaviour - WithDefaultRedirectUri() yielding http://localhost on .NET is now a test, not an assumption in a comment. - Apply() is gated on UNO_EXT_MSAL like MsalStorageDefaults: MsalConfiguration only derives PublicClientApplicationOptions on the platforms that ship a functional provider, and net9.0/maccatalyst carry the no-op stub. Adds a build-time guard for the one failure mode no test host can catch. The ANDROID / IOS branches are selected with the SDK's implicit symbols; if either stopped being defined the branch would not fail to compile, it would silently fall through to the desktop path. UNO_EXT_MSAL_*_TFM is derived independently from _UnoExtMsalTargetPlatform in the .csproj and cross-checked with #error. Verified by breaking it: the android TFM build fails with the message. 27 tests pass; all TFMs build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Adds Uno.Extensions.Authentication.MSAL.UI.Tests, driving login, silent refresh, logout and cancellation against a stubbed Entra tenant - no network, no tenant, no human at a sign-in prompt. Consumed by the RuntimeTests head, so it runs on desktop, wasm, android and ios rather than only where a developer can sit and click. Two real defects, both found by the new token-leak guard (red/fix/green): - TokenCache.LogKeyValues wrote raw access/refresh token *values* into Trace logs. Now logs the key and value length only. - HeaderHandler logged the bearer token on every outbound request at Debug. Now logs the scheme only. Both violate AGENTS.md §7 and both reached a consumer's configured logging pipeline. Neither was introduced by this branch. Test design notes: - Stubs the HTTP transport, not IPublicClientApplication: MSAL's per-request builders are concrete types, and faking the client interface would skip PKCE, cache writes and account resolution - the parts worth testing. - Each test purges persisted MSAL accounts before running. Without it the desktop token cache is shared across tests and across runs, and the first draft produced three passing-but-meaningless results. - The cancellation test documents MSAL's actual shape: a cancelled interactive sign-in surfaces as MsalClientException/authentication_canceled, never as OperationCanceledException, so the provider's OperationCanceledException catch is unreachable on that path. Worth revisiting separately. Requires one additive API: IMsalAuthenticationBuilder.InteractiveBuilder(...). Builder(...) configures the PublicClientApplicationBuilder, but the interactive modifiers (WithPrompt, WithLoginHint, WithCustomWebUi) hang off AcquireTokenInteractiveParameterBuilder, which was unreachable from the public surface. Useful beyond tests; documented in HowTo-MsalAuthentication.md. Verified: 7/7 new runtime tests pass on the desktop head; 1550 unit tests pass; runtime-test failure set is byte-identical to the pre-change baseline at 31e7eb5 (15 pre-existing environmental failures, 0 new). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Ports the four-platform runtime-test setup from the studio.live repo: build
stages publish each head as a pipeline artifact, test stages boot an
emulator/simulator/browser, run the tests and harvest NUnit results.
- MobileRuntimeTestsAutostart + an Android intent -> env-var bridge in the
RuntimeTests head. Mobile can't use the engine's UNO_RUNTIME_TESTS_RUN_TESTS
runner: its ModuleInitializer calls Console.CancelKeyPress, which throws
PlatformNotSupportedException inside a sandboxed iOS app. Hence the separate
UITEST_RUNTIME_* variable names - they exist so that initializer stays asleep.
- build/test-scripts/{android-emulator,ios-simulator,wasm}-runtime-tests.sh and
a shared NUnit validator that fails on zero test cases as well as on failures
(an app that writes an empty document otherwise looks green).
- Scripts discover package name / bundle id from the built artifact rather than
hard-coding them, so an ApplicationId change can't silently break the launch.
Unblocks several pre-existing breakages that were invisible because no CI stage
built these heads:
- Two Page subclasses missing `partial` (android CS0260) and two unresolvable
doc-comment crefs (android) - the android head had never compiled.
- Trim/AOT analysis failed the wasm build of every *.UI.Tests project. Fixed
once in src/Directory.Build.props under the existing IsTestProject condition
rather than per project; test libraries are never published trimmed, and
Uno.Extensions.Serialization.AotTests remains the AOT backstop.
The device stages run a filter scoped to Given_MsalAuthentication, not
!_HotReload. The wider suite has 15 failing tests - verified byte-identical at
the pre-change baseline 31e7eb5, so they are rot accumulated while the
runtime-test stage sat commented out, not regressions. stage-build-runtimetests-skia.yml
therefore stays disabled, with the stale uno#17668 reason replaced by the real
one. Widening RuntimeTestsFilter is the follow-up that makes this fully useful.
Verified: desktop, android and wasm heads all build (ios needs a Mac); 7/7 MSAL
runtime tests pass on desktop; 1550 unit tests pass; all six pipeline YAML files
and all four scripts parse.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Contributor
|
|
…template First CI run of the new stages (build 227478) failed in three places, all environment setup rather than the tests themselves: - Android and WebAssembly build jobs hit NETSDK1147 / UNOWA0001: this repo installs workloads per stage (see stage-build-wasm.yml), and dotnet-install.yml only lays down the SDK. Added `dotnet workload install android` / `wasm-tools` / `ios` to the respective jobs. The android failure covered the whole project graph, including the *.UI.Tests projects pulled in as ProjectReferences. - The iOS jobs failed in templates/ios-build-select-version.yml, which lists /Library/Frameworks/Xamarin.*.framework - paths that no longer exist on hosted macOS images, so it exits 1 before doing anything. Nothing in this repo built iOS in CI, so it had gone stale unnoticed. Both iOS jobs now select Xcode directly and print the available Xcode versions, simulator runtimes and devices, so the next run shows what to pin IosXCodeRoot / IosSimulatorDevice to rather than guessing again. Docs validations also failed - they only run when a PR touches docs, so this PR is the first in a while to trigger them: - Spell check: added cref, browserwasm, DPAPI, libsecret, nuspecs and unmaterialized to build/ci/cspell.json, and corrected en-GB spellings in my own prose rather than dictionary-ing them away. - Markdown lint: two fenced blocks with no language in specs/004 and specs/006, both pre-existing. Verified locally: cspell reports 0 issues across 225 files, and markdownlint reports 0 MD040. Note a newer local markdownlint-cli (0.49.1) also flags MD059/MD060 across many untouched doc files; CI's version does not, and fixing those is out of scope here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
…t jobs The repo had dotnet-install-windows.yml and dotnet-install-mac.yml but no Linux counterpart, so the new runtime-test jobs were installing workloads with ad-hoc `dotnet workload install` lines. That drifts from what the Windows and macOS lanes get, which is the failure mode this template exists to prevent. - New templates/dotnet-install-linux.yml mirrors its siblings: same DotNetVersion (9.0.200) and UnoCheck_Version (1.30.1), UseDotNet + jdk-setup + uno-check --fix, with the skips that are meaningless on a Linux agent (xcode, gtk3, vswin, vsmac) and androidemulator. - InstallAndroidSdk parameter, defaulted off, following the same opt-in shape as studio.live's template: only the Android build job pays for provisioning the platform jars. The emulator test job doesn't use it - that script provisions its own SDK under build/android-sdk so it controls the AVD image. - Android/WebAssembly build jobs and the desktop/wasm test jobs now use it, and the ad-hoc workload installs are gone. All 34 pipeline YAML files parse. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
…plate pair Replaces the dotnet-install-linux.yml added in the previous commit. studio.live uses one cross-platform pair rather than a template per OS, which is the better shape here too - the iOS job now uses the same template as the Linux ones. - dotnet-install.yml gains the studio.live body: DOTNET_INSTALL_DIR *and* DOTNET_ROOT pinned to a workspace-local .dotnet, Cache@2 for both the SDK and the EMSDK, and a parameterized DotNetVersion (default unchanged at 9.0.200). Pinning DOTNET_ROOT matters beyond caching: without it `dotnet` falls back to the agent image's system install - macOS images ship maccatalyst and maui pre-installed - and workload installs leak into it. - New dotnet-install-uno-check.yml wraps it with jdk-setup + uno-check --fix and the InstallAndroidSdk opt-in, so only the Android build job pays for provisioning platform jars. - The ad-hoc `dotnet workload install ios` line is gone; uno-check installs it. Two deliberate deviations from the studio.live originals: - `pwsh` instead of `powershell` for the uno-check steps. These templates run on Linux and macOS agents, where the `powershell` shortcut (Windows PowerShell) is not available. - `mkdir -Force` for the EMSDK cache path, so a pre-existing directory on a re-run or self-hosted agent isn't a hard error. Note this changes dotnet-install.yml for four existing stages (wasm, wasm UI tests, both skia runtime-test stages). The SDK version they get is unchanged; what is new is the workspace-local install plus caching. Worth watching those stages on this run. All 34 pipeline YAML files parse. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
`mkdir -Force` was my own hardening on top of studio.live's plain `mkdir`, and
it broke all six jobs in build 227536 - including three stages that were green
before this branch touched them (WASM samples, WASM UI tests, skia hot-reload
tests).
On Linux, PowerShell defines no `mkdir` function, so `mkdir` resolves to
/usr/bin/mkdir, which rejects the switch:
/usr/bin/mkdir: invalid option -- 'F'
`mkdir` is a PowerShell *function* only on Windows, which is why the original
worked everywhere and the "improved" version worked nowhere. Use
`New-Item -ItemType Directory -Force` instead: unambiguous in pwsh on every
platform, and still idempotent for a re-run or a self-hosted agent where the
directory already exists.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
`dotnet publish` on a WebAssembly head runs the trimmer, and third-party assemblies (Uno.Toolkit.WinUI, Uno.UI.HotDesign.*, Uno.UI.App.Mcp.Client) emit IL2104 trim warnings that TreatWarningsAsErrors turns into build errors. Switched to `dotnet build` + staging bin/.../net9.0-browserwasm/wwwroot, which is what stage-build-wasm.yml and wasm-uitest-run.sh already do in this repo. Trimming a runtime-test host was the wrong thing to be doing regardless: the engine discovers tests by reflection, which is precisely what the trimmer strips. The earlier EnableTrimAnalyzer=false in Directory.Build.props silences the *analyzer* at compile time; IL2104 comes from ILLink during publish, which is a different stage and a different knob. The wwwroot path is verified against the local build output layout rather than assumed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Both Linux build jobs failed in the cache post-job with:
tar: 22a0740a26e84dda9d3008bf2cbf577b_archive.tar: Wrote only 8192 of 10240 bytes
tar: Error is not recoverable: exiting now
That is the agent running out of disk while archiving the SDK cache, not a
tar or cache bug. The Android SDK, the workspace-local .dotnet added by the
dotnet-install.yml refactor, and the cache tarball together exceed the free
space on a hosted agent.
templates/host-cleanup-linux.yml exists for exactly this and is already used by
every other Linux job in the pipeline, including the runtime-test *run* stages
added in this branch - the two *build* jobs were the only Linux jobs missing it.
Worth noting the builds themselves succeeded in build 227549; only the post-job
cache save failed. This is the last step between here and the device stages
actually running.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
The runtime-test build jobs ran out of disk archiving the SDK cache even after host-cleanup-linux.yml was added to them (90f6426), because this repo's copy of the script is a subset of the one in studio.live. Ported the missing parts: - `docker system prune -af --volumes` - the biggest single win (~30 GB on a hosted runner) and the one this script was missing entirely. - Remove the non-.NET hosted tool caches (Ruby, PyPy, Python, go, node). - Purge firefox, chrome, libllvm*, clang-*, llvm-*, php*, ruby* and run `apt-get clean`. Deliberately no --auto-remove: it drags out orphaned X11 libs (libx11-xcb1, libx11-6) that the Android emulator needs, for negligible gain. - Guard the ~/.dotnet wipe behind a CI check so running the script on a dev machine doesn't delete a real SDK install. Not adopted: studio.live's extra `startsWith(variables['Agent.Name'], 'Azure Pipelines')` condition on the template. That exists to skip the wipe on self-hosted pools, and every Linux job in this repo uses a hosted `vmImage`, so it would buy nothing here - while silently disabling cleanup entirely if the agent naming assumption is wrong, which is exactly the failure being fixed. Note this script is shared with .github/actions/host-cleanup-linux, so the GitHub Actions docs workflow picks up the same changes. Jobs using NodeTool@0 now re-download Node; that is the intended trade on build jobs, and is why the script warns against adding it to jobs that only validate pre-built binaries. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Two follow-ups to porting studio.live's cleanup script - both cases where their list is safe in that repo and not in this one. xvfb (build 227556, Hot-Reload Tests exit 127 "xvfb-run: command not found"): purging `libllvm*` cascades. apt removes reverse-dependencies even without --auto-remove, Mesa's software rasteriser (llvmpipe) links LLVM, and `xvfb` depends on Mesa - so xvfb went with it. Both Skia desktop stages here run their tests under `xvfb-run`. Dropped the whole firefox/chrome/llvm/clang/php/ruby purge: `google-chrome-stable` is likewise needed by the WebAssembly UI tests, which drive a real Chrome through chromedriver, and the Docker prune already reclaims far more than that list would. Left Node in the tool cache too, since several stages use NodeTool@0 and would just re-download it. Android SDK (XA5300, "The Android SDK directory could not be found"): the script has always removed /usr/local/lib/android, which was harmless while no Linux job built Android. The runtime-test Android job does, so the removal is now guarded by KEEP_ANDROID_SDK, which that job sets. The emulator test job deliberately does not - it provisions its own SDK under build/android-sdk. Samples - WebAssembly is green again on this build, confirming the earlier EMSDK fix. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
`dotnet publish` rejects a simulator RID outright:
error : A runtime identifier for a device architecture must be specified in
order to publish this project. 'iossimulator-x64' is a simulator architecture.
Same class of mistake as the WebAssembly job: publish is for shipping, and a
simulator .app is not a shippable artifact. Switched to `dotnet build` and drop
the explicit RID - for a build the iOS SDK defaults to the simulator RID that
matches the agent's own architecture, which is what the simulator in the test
stage can actually run. Hard-coding iossimulator-x64 would produce an app an
arm64 agent has to translate.
The .app is located with `find` rather than a hard-coded RID subfolder, so this
keeps working whichever architecture the agent defaults to, and fails loudly
with a directory listing if no bundle was produced.
Also confirmed from build 227559's diagnostics, which is why that step prints
the inventory:
- Xcode_16.2.app exists on the macOS-15 image, so IosXCodeRoot was already
correct and 'Select Xcode' succeeded.
- Simulator runtimes are iOS 18.5, 18.6, 26.0, 26.1 and 26.2, so the
IosSimulatorRuntimePrefix of `...SimRuntime.iOS-18` matches.
The device list was only being printed by the test stage, so IosSimulatorDevice
('iPhone 16') is still unverified - the build stage now prints devices and the
agent architecture too.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
actool refuses to compile the asset catalog unless a simulator runtime matching
the selected Xcode's iphonesimulator SDK is installed:
actool error : No simulator runtime version from [22F77, 22G86, 23A8464,
23B86, 23C54] available to use with iphonesimulator SDK version 22C146
22C146 is the iOS 18.2 SDK that Xcode 16.2 ships. The macOS-15 agent has
runtimes 18.5 (22F77), 18.6, 26.0, 26.1 and 26.2 installed - no 18.2. Pinning
16.2 broke a pairing the image otherwise maintains for us.
Xcode 16.4 ships the iOS 18.5 SDK, matching the installed 22F77 runtime, so the
pin moves to 16.4 and IosSimulatorRuntimePrefix narrows from `iOS-18` to
`iOS-18-5` to keep the build and test stages on the same runtime rather than
letting the test stage drift onto 18.6.
Both values live together in .azure-pipelines.yml precisely so this pairing
cannot be changed by halves.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
With the Xcode pin fixed, the iOS build got past actool and failed in the
compiler instead:
CS1705: Assembly 'Uno.UI.HotDesign.Client' uses 'Microsoft.iOS,
Version=26.0.0.0' which has a higher version than referenced assembly
'Microsoft.iOS, Version=18.2.0.0'
Uno.UI.HotDesign ships its iOS assets built against Microsoft.iOS 26.0, while
the workload uno-check installs for .NET 9 is 18.2. Android and WebAssembly are
unaffected, which is why only this lane fails.
Hot Design is a design-time tool with no role in an automated runtime-test run,
so the iOS build now passes -p:UnoDisableHotDesign=true. That alone removes the
package but leaves the MainWindow.UseStudio() call site (UseStudio lives in
Uno.UI.HotDesign.Client), so the project surfaces the property to the compiler
as UNO_HOT_DESIGN_DISABLED and App.xaml.cs guards the call with it.
The alternative - moving the whole lane to an iOS 26 workload and Xcode 26 -
would align with the package but drags a net9.0 repo onto a pre-major toolchain
for the sake of a tool this app doesn't use.
Verified locally on the desktop head: the constant is undefined by default and
defined with the flag, and the project builds both with and without Hot Design.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
Both stages executed for the first time in build 227578 and failed after doing most of their work. Desktop: the tests ran, then the engine failed writing results with DirectoryNotFoundException on build/desktop-runtime-tests/desktop-runtime-tests-results.xml. It writes UNO_RUNTIME_TESTS_OUTPUT_PATH directly and does not create parent directories - the android/ios/wasm scripts mkdir their own results dir, and this inline step was the only one that did not. Added the mkdir. WebAssembly: `dotnet tool install` failed with "Settings file 'DotnetToolSettings.xml' was not found in the package". That message is misleading - the file is present. Every published version of Uno.UI.RuntimeTests.Engine.Wasm.Runner (dev.74 through dev.81, all verified by inspecting the packages) ships as tools/net10.0/any, and a net10.0 tool cannot run on the .NET 9 SDK this repo pins. studio.live does not hit this because its pipeline is already on .NET 10. Fixed by installing the .NET 10 *runtime* alongside the .NET 9 SDK in that job; the pinned runner version is unrelated and unchanged. Also corrected the comment above runner_version in wasm-runtime-tests.sh: it claimed an older runner "silently fails to find the harness", which was speculation and is not the constraint that actually applies. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
…r tool The .NET 10 runtime added in bfab4da installed successfully and the tool still failed to install with the same error. `dotnet tool install` resolves which tools/<tfm> asset to use from the *SDK* version, not from the installed runtimes, so a .NET 9 SDK rejects the runner's tools/net10.0/any asset no matter what runtimes are present - and reports it as "Settings file 'DotnetToolSettings.xml' was not found in the package", which is not true; the file is there. Switched packageType from runtime to sdk. Safe in this job: it only runs the tool and builds nothing, and global.json pins no SDK version so nothing else shifts underneath. The script now also prints `dotnet --list-sdks`, since the failure otherwise blames the package rather than the SDK. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
The android, iOS and WebAssembly lanes were never wired to the pipeline's RuntimeTestsFilter - each fell back to its script's own '!_HotReload' default and ran the entire suite, including the 15 known-failing tests and cases that need input injection. Only desktop honoured the variable, which is why only desktop passed. Both mobile/browser lanes hung rather than failed, consistent with that: - iOS: simulator booted in 21s, app launched (pid 7197), then no result file for the full 1800s. - WebAssembly: the .NET 10 SDK fix worked - the tool installed and the browser loaded the app (408 requests) - then "No results received" at 1800s with the browser still running. wasm-runtime-tests.sh gains the same TEST_FILTER knob the android/ios scripts already had, so all four lanes are driven by one variable instead of three private defaults. Also closes a hole in the desktop lane: PublishTestResults fails on a *missing* results file but not an empty one, so a run that executed nothing would still go green. The other three lanes call validate-runtime-test-results.py, which fails on zero test cases; desktop now does too. Today's green desktop run genuinely executed all 7 MSAL tests - verified from the log - but the pipeline itself would not have caught the difference. Note this also means the PR description's claim that the device stages run a scoped filter was only true of desktop until now. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
The filter wiring from 9f0a6f9 took effect ("Test filter: Given_MsalAuthentication" in the log) and WebAssembly still hung identically - 408 requests, no results, browser alive at 1800s - so the filter was not the cause here. The runner builds its own test URL and already sets UNO_RUNTIME_TESTS_RUN_TESTS on it. Passing that same key via --query-param produced a URL carrying it twice: ...&UNO_RUNTIME_TESTS_RUN_TESTS=true&...&UNO_RUNTIME_TESTS_RUN_TESTS=%7B... so the app never started a run. The runner exposes a first-class `--filter` option (confirmed from its --help, and visible in the log as "[WasmRunner] Filter: (none)"); switched to that and dropped the query param. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
… to boot
Two findings from the first build allowed to run to completion (227603).
iOS was not hanging - the app was crashing on launch, every time. The published
device log (which I should have read three rounds earlier) shows:
TypeInitializationException: 'Uno.Extensions.RuntimeTests.GlobalStaticResources'
---> 'Uno.UI.App.Mcp.Client.GlobalStaticResources'
---> FileNotFoundException: 'SkiaSharp.Views.Windows'
Uno.UI.App.Mcp is a separate implicit dev-tooling package from Hot Design with
its own switch, so UnoDisableHotDesign did not remove it - and plausibly broke
its dependency chain, since SkiaSharp.Views.Windows may well have arrived that
way. Both are design-time tooling with no role in an automated test run, so all
three device builds now pass UnoDisableHotDesign and UnoDisableMCPSupport.
Verified locally: with both set, the MCP and Hot Design assemblies and
SkiaSharp.Views.Windows are all absent from wwwroot/_framework, so the failing
initializer cannot run. WebAssembly boots fully, loads every assembly and then
goes silent, which is what this same crash looks like in a browser with no
console capture - the same fix may well cover it.
Android had never actually run: every previous build was cancelled by my next
push before the emulator job got there. Given a clean run it discovered the
package name and launcher activity from the APK, started adb and launched the
emulator - then hit the job's 60-minute timeout while still booting, having
spent the hour provisioning the SDK from scratch. Raised to 120 minutes, and
stopped silencing sdkmanager: with its output discarded, a slow download was
indistinguishable from a hang.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
…ts from the app container The MCP exclusion fixed the iOS crash - the app now starts cleanly and logs "Initializing runtime-tests module". It still produced no results, and the device log gave no way to tell why: MobileRuntimeTestsAutostart returns silently when UITEST_RUNTIME_AUTOSTART_RESULT_FILE is unset, so "the variable never arrived" and "it ran and produced nothing" look identical. That is the same silence-reads-as-success flaw I flagged in the harness scripts, in my own ported code. It now logs the variable's value (or that it was unset) on every launch, and logs the path after writing results. Also stopped assuming the simulator shares the host's /tmp. That assumption came across from studio.live and is unverified here; the app's data container path from `simctl get_app_container` is the same path inside and outside the simulator, so results are written and polled there instead, with a fallback to the previous behaviour if the container cannot be resolved. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014FLT6rr6WyK7R4wAtnQzEd
The .NET 10 SDK cannot be used on this pipeline's Windows agents, so the Uno.Toolkit pin cannot be removed yet. Build 229720: Version 10.0.400 of the .NET SDK requires at least version 18.0.0 of MSBuild. The current available version of MSBuild is 17.14.51.32402. MSB4276: ...\Microsoft Visual Studio\2022\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\Sdk did not exist. Packages and both Windows sample heads build with Visual Studio's MSBuild (MSBuild@1 via `vs where release`), the windows-2022 image ships VS 2022 / MSBuild 17.14, and .NET 10 refuses to load under it. `dotnet build` is not an alternative: it cannot build the XAML-bearing WinUI libraries here at all (UNOB0008, recorded when this branch bumped the Uno SDK). The earlier MSBuild.Sdk.Extras MSB4184 was an earlier symptom of the same incompatibility. So the constraint is circular on Windows: Uno.Toolkit 9.2's iOS assembly needs the .NET 10 iOS workload (CS1705 without it, build 229332), the Packages job builds net9.0-ios, and that job cannot run .NET 10. Restores the pinned, verified-green configuration - Toolkit 8.4.2, Hot Design 1.19.175, Themes 6.1.1, System.Text.Json 8.0.5, .NET 9 SDK / uno-check 1.30.1 on every lane, Xcode 16.4 with the iOS 18.5 simulator - and the ModalFlyout catalyst XAML guard, which was only needed because Toolkit 9.x drops its Mac Catalyst assembly. Un-pinning needs a Windows image with MSBuild 18; it is not a package problem. Kept, because they are real defects independent of the SDK question: - wasm-tools workload installs for the two lanes that lacked them (the UI-test lane had been coasting on a warm SDK cache; the static-app build now succeeds and fails only on an Azure staging-environment quota) - MSBuild.Sdk.Extras removed - unmaintained, and neither consumer needed it - the widened WebAssembly runtime-test filter, which follows from the provider running the app's Builder callback after WithUnoHelpers() Verified: Uno.Extensions-packageonly.slnf Release, 0 errors; Playground restores with zero NU1xxx. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
force-pushed
the
dev/sb/msal-auth-fixes
branch
from
August 24, 2026 11:08
ce24a3d to
42cad2c
Compare
This was referenced Aug 24, 2026
kazo0
added a commit
that referenced
this pull request
Aug 24, 2026
The docs-validation stage only runs for PRs that touch a .md file, and the first one to do so since these crept in fails on files it did not change: - MD040 (fenced code block without a language) in specs/004 and specs/006 - cspell: "nuspecs" and "unmaterialized" (technical terms, added to the dictionary) and "recognise" in specs/lessons.md (spelled the way the rest of the docs do) - MD059 / MD060 are new rules in current markdownlint-cli that flag existing tables and link text across doc/; disabled in the config, as #3139 did, so the lane checks what it checked before rather than the whole tree at once Verified with the CI commands: markdownlint clean, cspell 226 files / 0 issues. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Aug 24, 2026
…ller eat the job update-vs-components.yml drives vs_installer.exe to add Component.Xamarin and has no timeout. Twice today the installer hung silently on one Windows sample job while the sibling job ran the identical step in under five minutes, and each hang cost the full 90-minute job budget (#3139 build 229724, #3151 build 229783). The step now times out at 15 minutes and retries twice; vs_installer modify is idempotent, so a retry is safe. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Aug 24, 2026
…ersistence, ISettings registration The storage layer of #3139's split. - KeyValueStorageConfiguration:BrowserCacheLocation selects the WebAssembly store: LocalStorage (the default - what the browser already used, so upgrading never relocates data), SessionStorage (new SessionStorageKeyValueStorage over direct JS interop; there is no WinRT surface for sessionStorage) or MemoryStorage. Member names mirror msal-browser's cacheLocation. Only the browser acts on it - Skia desktop shares the same #else branch and must keep ApplicationData - but the value is validated on every platform so a typo in a shared appsettings.json fails the desktop run a developer actually does - IsEncrypted reports true for EncryptedApplicationDataKeyValueStorage (DPAPI) and PasswordVaultKeyValueStorage (Credential Locker). It is the flag on the public surface a consumer branches on to decide whether a store is safe for tokens, and both said false - DPAPI-protected values now persist on unpackaged Windows. The unpackaged path goes through the string-only ISettings, and the base store persisted value?.ToString() - the literal "System.Byte[]" - while the keys persisted, so HasTokenAsync reported a signed-in user with nothing to recover. The base store base64-encodes byte[] on that path; the encrypted store returns raw bytes on both and accepts either shape on read, so packaged caches are not orphaned - AddKeyedStorage registers the ISettings its stores need (TryAdd; an app's own wins), so UseStorage works on any host rather than only after UseThemeSwitching. Storage.WinUI therefore references Core.WinUI, as Hosting.WinUI and Navigation.WinUI already do New Uno.Extensions.Storage.WinUI.Tests, wired into the runtime-test head: store selection per BrowserCacheLocation value on the browser and the "ignored elsewhere" guard everywhere else, strict validation (unknown and numeric values throw naming the setting, casing accepted), and a round trip through the resolved default. Docs: StorageOverview.md gains the per-platform default-store table, the BrowserCacheLocation section, and a note that Android/iOS heads built with the Skia renderer get plain ApplicationData (the SDK loads this package's netX.0 build there, and the KeyStore/Keychain stores only exist in the platform builds); UpdatingExtensions.md records the IsEncrypted and ISettings changes. Verified: Storage.WinUI.Tests 8/8 on the desktop runtime-test head; Uno.Extensions-packageonly.slnf Release 0 errors; markdownlint and cspell clean. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Aug 24, 2026
The docs-validation stage only runs for PRs that touch a .md file, and the first one to do so since these crept in fails on files it did not change: - MD040 (fenced code block without a language) in specs/004 and specs/006 - cspell: "nuspecs" and "unmaterialized" (technical terms, added to the dictionary) and "recognise" in specs/lessons.md (spelled the way the rest of the docs do) - MD059 / MD060 are new rules in current markdownlint-cli that flag existing tables and link text across doc/; disabled in the config, as #3139 did, so the lane checks what it checked before rather than the whole tree at once Verified with the CI commands: markdownlint clean, cspell 226 files / 0 issues. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
pull Bot
pushed a commit
to ehtick/uno.extensions
that referenced
this pull request
Aug 24, 2026
Unmaintained - 3.0.44 is its last release - and it does not load under the .NET 10 SDK: Sdk.props derives a path from $(ToolDepsJsonGeneratorProject), which that SDK no longer defines (MSB4184, seen on unoplatform#3139's Windows jobs). Only Uno.Extensions.Serialization.Http and .Refit used it, and neither needs anything it provides: three plain .cs files each on the single net9.0 TFM from tfms-non-ui.props, with none of the per-TFM globbing or Xamarin multi-targeting the SDK exists for. Both now use Microsoft.NET.Sdk, and the msbuild-sdks entry goes with its last consumer. Verified: both projects build and pack, and the packages keep the same shape - lib/net9.0 dll + pdb + xml, same net9.0 dependency group. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
pull Bot
pushed a commit
to ehtick/uno.extensions
that referenced
this pull request
Aug 24, 2026
Uno.Wasm.Bootstrap relinks SkiaSharp's native WebAssembly assets, which needs the wasm-tools workload in the SDK the job uses. Two jobs never install it: - UI Tests - WebAssembly (Azure) has been passing on a warm "Set Cache for dotnet install" entry that happened to carry the workload. The SDK version is part of that cache key, so any bump evicts the entry and the job fails with UNOWA0001 "Native WebAssembly assets were detected, but the wasm-tools workload could not be located" (unoplatform#3139, build 229713) - Build and Deploy Job (GitHub Actions, Azure Static Web Apps) has been failing on main on every push with the same error: actions/setup-dotnet installs its own SDK inside unoplatform/wasm-build, and the workload belongs to the SDK, not to the image Both now install it themselves, matching stage-build-wasm.yml. Verified on unoplatform#3139: the UI-test lane went red -> green with exactly this step, and the static-app build now succeeds - its deploy step then fails on an Azure staging-environment quota, which is not something the repository can fix. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
pull Bot
pushed a commit
to ehtick/uno.extensions
that referenced
this pull request
Aug 24, 2026
…ider-build paths Provider-independent defects in Uno.Extensions.Authentication, none of them covered by a test until now. Split out of unoplatform#3139 as its auth-core layer. - TokenCache logged every cached value at Trace when enumerating keys, and HeaderHandler logged the bearer at Debug on every outbound request - both to the consumer's configured logging pipeline (AGENTS.md section 7). They now log key + value length, and the scheme only - AuthenticationService.RefreshAsync saved whatever the provider returned; a provider returning nothing (expired or revoked refresh token) left no tokens but never raised ITokenCache.Cleared, so LoggedOut did not fire and an app that navigates on it sat on a signed-in page with nothing to send. It now clears the cache, the same as an explicit sign-out - LogoutAsync let a provider exception escape before _tokens.ClearAsync ran, so a sign-out that failed part-way (a locked keychain, a cache-file error) left the access token in place and IsAuthenticated true. It now clears with CancellationToken.None - a cancelled token must not skip it - and rethrows. A provider returning false is unchanged: that is "the sign-out did not happen", and the session stands - The provider table was populated behind a Count == 0 check and each provider configured with a bare ??=, so two concurrent callers could both build. ConfigureProvider returns a record copy, so the losing MSAL instance stayed subscribed to ITokenCache.Cleared with nothing left to unsubscribe it. Both are Lazy (ExecutionAndPublication) now; Providers still reports only what has been built, since reading a property must not construct a client application - The LoginAsync(CancellationToken) remarks now say the overload passes no IDispatcher New Uno.Extensions.Authentication.Tests (net9.0 MSTest, in the package-CI VSTest filter): 12 tests. Every fix was verified red first - the two log-leak guards fail against main's TokenCache and HeaderHandler, the refresh and sign-out cases against main's AuthenticationService. Verified: Authentication.Tests 12/12; Uno.Extensions-packageonly.slnf Release 0 errors, which covers the MSAL, OIDC and Authentication.WinUI consumers. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
This was referenced Aug 24, 2026
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…tested against a stub tenant Layer 2/4 of the MSAL authentication work (#3139): the provider fixes and the unattended test harness. No WebAssembly token-cache persistence yet - that is the next layer. - Platform selection is runtime dispatch (OperatingSystem.Is*), not #if: on Skia Android/iOS heads Uno.Sdk substitutes the plain netX.0 build of this assembly, and that build was a stub, so AddMsal registered nothing and every auth call failed with "No providers specified". UNO_EXT_MSAL is now defined for every platform that ships a functional provider (Package.targets applies the same rule in consuming projects); only Mac Catalyst keeps a stub, and AddMsal throws PlatformNotSupportedException there instead of failing later - Redirect URIs are derived per platform - msal{ClientId}://auth on Android, msauth.{BundleId}://auth on iOS, the WebAuthenticationBroker URI on WebAssembly, WithDefaultRedirectUri() on desktop - with the documented precedence: platform default < configuration < the app's Builder callback, which now runs after WithUnoHelpers() so it wins everywhere - Token-cache persistence is platform-aware: MsalStorageDefaults supplies the keychain (macOS) and keyring (Linux) properties MsalCacheHelper needs, so it no longer throws ArgumentNullException there (#3025); mobile lets MSAL persist natively; an opt-in AllowUnprotectedTokenCacheFallback keeps sign-in state on a machine with no secure store. Microsoft.Identity.Client moves to 4.87.0 for macOS desktop under .NET 10 (4.72.1's IsMac() did not recognise the marketing-string OS description) - Sign-out removes every account, not just the first; a refresh that cannot renew the session returns no tokens (the service signs out), while a transient failure keeps them; the 5-minute interactive timeout defaults only on desktop; MSAL exceptions are rethrown untouched; IMsalAuthenticationBuilder gains InteractiveBuilder(...) for the per-request modifiers - The vendored Microsoft.Identity.Client.Extensions.Msal *.wasm.cs stubs were dead code and are gone Tests: Uno.Extensions.Authentication.MSAL.Tests (unit, linked sources) covers redirect derivation and precedence and the storage defaults; Uno.Extensions.Authentication.MSAL.UI.Tests drives login, silent refresh, rejected and transient refreshes, sign-out and cancellation through real MSAL against StubEntra (a stubbed tenant at the HTTP layer) and StubWebUi, with no network and no human. The device lanes now run that namespace too. TestHarness drops its hard-coded uno-extensions://auth redirect, which the provider used to override on WebAssembly and now would not. Docs: redirect URIs, the Android/iOS callback plumbing, InteractiveBuilder, the interactive timeout and the storage options in the how-to; the behavior changes in UpdatingExtensions.md. Specs 009 and 010 carry the design trail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…torage Layer 3/4 of the MSAL authentication work (#3139). Before this the MSAL cache was memory-only in the browser, so every page reload meant signing in again. - MsalCacheHelper has no browser backend, so on WebAssembly the provider registers SetBeforeAccessAsync/SetAfterAccessAsync callbacks that serialize the cache through MsalTokenCacheStore into the host's default IKeyValueStorage, keyed MsalCache_{ClientId}. Which store that is - and so whether the cache survives a reload or a tab close - is the storage layer's KeyValueStorageConfiguration:BrowserCacheLocation (localStorage by default); this side only reads and writes the blob, so MemoryStorage yields the old in-memory behavior for free - MsalKeyValueStorage wraps the resolved default store for injection, since a bare IKeyValueStorage registration resolves to the in-memory one - Sign-out and ITokenCache.Cleared both delete the serialized cache, in a finally and with CancellationToken.None, so a cancelled or failed sign-out cannot leave refresh-token material behind - A warning names the store whenever the cache is persisted unprotected: the serialized cache holds the refresh token, and only an Entra `spa` registration caps that token at 24 non-sliding hours Tests: Given_MsalTokenCacheStore (unit) covers the round trip, key layout, corrupt-blob handling and no-op writes; the UI suite gains the sign-out / cancelled sign-out / Cleared purge cases and the "persisted only on WebAssembly" guard, and the WebAssembly lane runs it. Docs: the browser cache section of the how-to (store choice, the `spa` prerequisite and why it matters) and the migration note. Spec 011 carries the design trail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Aug 25, 2026
…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
pull Bot
pushed a commit
to ehtick/uno.extensions
that referenced
this pull request
Aug 25, 2026
Layer 1/4 of the MSAL authentication work (unoplatform#3139): the device lanes, without any MSAL code. Build stages publish each head as a pipeline artifact; test stages boot an emulator / simulator / headless browser, run the engine with a namespace filter and harvest NUnit results. Ported from Studio Live's setup. - Four lanes (stage-runtime-tests-{desktop,wasm,android,ios}.yml) fed by stage-build-runtimetests-mobile.yml; scripts under build/test-scripts with bounded waits, inline emulator logs and a results validator that fails on an empty or all-skipped run - Runtime-test head: MobileRuntimeTestsAutostart drives UnitTestsControl and writes the NUnit document on Android/iOS (the engine's own runner throws PlatformNotSupportedException in a sandboxed app); WebAssemblyRuntimeShim supplies the __WASM__ symbol and InvokeJS the source-shipped engine needs; MainActivity uses GetExternalFilesDir for the results path; the iOS head carries the keychain entitlement MSAL's cache accessor demands - src/Directory.Build.targets exempts AndroidApplication heads from the library-only Private=false rule: .NET Android rewrites an app head's OutputType to Library, which emptied ReferenceCopyLocalPaths and shipped APKs without their ProjectReference closure - src/Directory.Build.props turns the trim/AOT analyzers off for test and sample projects; they only turned "this test calls the API it exists to test" into IL2026 errors on the WebAssembly heads - Given_NavigationRouteUpdateHandler (unoplatform#3146, merged under this branch) becomes partial: the Android/iOS native-ctor generator emits a partial for it, and main never compiles the Navigation UI tests for a device TFM, so these lanes are the first build to see CS0260 - RuntimeTestsFilter is Storage.UI.Tests: green on every lane today. The MSAL namespace joins it in the next layer; '!_HotReload' waits on 15 rotted cases in the wider suite AGENTS.md records the new Window() rule (mobile rejects secondary windows); specs/lessons.md the CI lessons. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0
added a commit
that referenced
this pull request
Sep 11, 2026
…eholder - AddWeb required a per-platform callback (config value or Prepare callbacks); MSAL derives its redirect per platform (PR #3139) and AddOidc has AutoRedirectUriFromWebAuthenticationBroker, but Web had no equivalent (spec 014) - when no callback resolves from configuration, the provider now falls back to WebAuthenticationBroker.GetCurrentApplicationCallbackUri(): the custom scheme on Android/iOS, the app origin on WebAssembly, the loopback listener on Skia Desktop; not on WinAppSDK, where the WinRT broker answers ms-app://, wrong for the WinUIEx protocol flow - the literal {RedirectUri} token in LoginStartUri/LogoutStartUri is replaced at sign-in/out time with the URL-encoded effective callback, so one static configuration serves every platform; a redirect_uri={RedirectUri} pair is no longer mistaken for a value by the extract-callback-from-start-uri logic - behavior change (documented): a configuration with no resolvable callback used to fail with a warning and now attempts the flow with the derived callback - red/fix/green in the Web runtime suite (15/15); documented in HowTo-WebAuthentication Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FbxVQgeqVf8bJT2wHUS8TV
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 (If applicable): relates to #3025, #2438, #2346, and unoplatform/uno#20601
PR Type
What is the current behavior?
MSAL authentication is wrong in a different way on almost every head:
AddMsalregisters nothing. Uno.Sdk substitutes the plainnetX.0build of the provider on those heads, and that build was a stub, so every auth call fails with "No providers specified".AddMsalreturns silently and fails the same way, much later and far from the cause.#if ANDROID / #elif IOS / #elseblock just to sign in.IsAuthenticatedtrue with nothing to send); sign-out removes only the first account and leaves the rest renewable; a sign-out that throws leaves the user signed in; raw tokens reach Trace/Debug logs.The area had almost no test coverage — two helper unit tests, and the one UI test commented out — and no CI stage ran runtime tests on any device.
What is the new behavior?
Platform selection happens at runtime, not in
#if, so the substituted plain-TFM assembly behaves correctly on Skia mobile. Redirect URIs are derived per platform (msal{ClientId}://auth,msauth.{BundleId}://auth, theWebAuthenticationBrokerURI,WithDefaultRedirectUri()); WinAppSDK is untouched, since the WAM broker owns it there. Mac Catalyst now throwsPlatformNotSupportedExceptionat registration instead of failing later.WebAssembly persists the MSAL token cache through
IKeyValueStorage, selected byKeyValueStorageConfiguration:BrowserCacheLocation(LocalStoragedefault /SessionStorage/MemoryStorage), so sign-in survives a reload.Auth lifecycle corrections: an unrenewable session signs the user out and raises
LoggedOut; a transient refresh failure keeps the tokens; sign-out removes every account plus the serialized cache, and clears the token cache even when the provider throws; providers are built exactly once; both token leaks are fixed.Storage:
IsEncryptedreports the truth; DPAPI values persist on unpackaged Windows (they were being written as the literal"System.Byte[]");UseStorageregisters its ownISettings.Tests and CI: a stubbed Entra tenant drives login → cache → silent refresh → sign-out → cancellation with no network and no human, in new unit and UI test projects. Runtime tests now run on desktop, WebAssembly, Android and iOS lanes, and CI builds with the .NET 10 SDK — which is what let the
Uno.Toolkit8.4.2 and Hot Design pins go.Additive API:
IMsalAuthenticationBuilder.InteractiveBuilder(...)reaches the per-request modifiers (WithPrompt,WithLoginHint,WithCustomWebUi, …) thatBuilder(...)cannot.Dependency requirements
Minimum Uno Platform 6.8 — while 6.8 is in preview that means a
6.8.0-devbuild (Uno.Sdk6.8.0-dev.21; the packages'Uno.WinUIfloor is6.8.0-dev.46). Below it, unoplatform/uno#24055 is missing andWithUnoHelpers()silently does nothing, so the floor turns a silent no-op into anNU1605restore error.Microsoft.Identity.Clientmoves 4.72.1 → 4.87.0 andSystem.Text.Json8.0.5 → 9.0.14.Behaviour changes (deliberate, documented)
doc/Learn/UpdatingExtensions.mdcarries the full list with migration steps. The ones to weigh: CatalystAddMsalthrows; the app'sBuilder(...)callback now wins over the platform default andWithUnoHelpers()(it used to be overwritten on WebAssembly); the WebAssembly token cache is persisted by default; an unrenewable refresh now signs out; MSAL exceptions propagate untouched.PR Checklist
Other information
Verification
Locally: package surface builds warning-clean on all seven TFMs; MSAL desktop runtime suite 25/25;
Authentication.Tests10/10,MSAL.Tests39/39, plus Core/Configuration/Serialization/AOT/Navigation/Reactive; all app heads restore with zeroNU1xxx. Every bug fix has a test that was verified red before it.CI on this PR is the first run of the four device lanes on the .NET 10 toolchain, and the first run of the WebAssembly lane over the full auth namespace (it was scoped to the storage tests while an app-supplied
HttpClientfactory was being overwritten in the browser).Known limitations
Authentication.MSAL.UI.Tests), not!_HotReload: the wider suite has 15 failures identical to the pre-change baseline. Widening it is the point of turning these lanes on.ProjectReference, so the SDK's assembly substitution never fires in CI. It needs a packaged-consumer smoke test.IKeyValueStorageis plaintextApplicationData, not KeyStore/Keychain — the same substitution applies to the storage package, and those stores only exist in its platform builds. Documented rather than fixed.Design notes and the verification trail are in
specs/009-msal-auth-fixes/,specs/010-msal-skia-mobile-runtime-dispatch/andspecs/011-wasm-msal-token-cache/; repo-wide lessons inspecs/lessons.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH