Skip to content

MSAL authentication on every head: runtime dispatch, WebAssembly token cache, device runtime tests #3155

Closed
4 of 4 issues completed

Description

@kazo0

Tracking issue for the stacked delivery of the MSAL authentication work that was opened as a single PR in #3139 and is being split so each layer reviews on its own. Parts that were independent already landed: #3151 (build hygiene), #3152 (auth core), #3153 (storage).

Problem, in one paragraph: Uno.Extensions.Authentication.MSAL is wrong in a different way on almost every head. Skia Android/iOS heads load the plain netX.0 build of the provider (Uno.Sdk substitutes it), and that build was a stub, so AddMsal registers nothing. Redirect URIs are not derived, so apps hand-write #if blocks to sign in. On WebAssembly the token cache is memory-only and the app's redirect URI is silently overridden. And none of it had tests or a CI lane to run them on.

Related: #3025, #2438, #2346, unoplatform/uno#20601 (fixed by unoplatform/uno#24055).

Layers, bottom to top - each has its own sub-issue and PR; review bottom-up:

  1. ci: device runtime-test lanes (desktop, WebAssembly, Android, iOS)
  2. feat(msal): runtime platform dispatch, redirect defaults, storage defaults, sign-out, plus the unattended StubEntra test harness
  3. feat(msal): WebAssembly token-cache persistence through IKeyValueStorage
  4. build: require the Uno version containing the Skia-mobile asset-selection fix

The stack closes this issue when the top layer merges.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions