Skip to content

MsalAuthenticationProvider does not work on MacOS out of the box #3025

Open

Description

@Flimzes

Current behavior

After creating a new Uno Cross Platform solution on MacOs using rider, adding MSAL authentication, and running the app, the app shows a login page
If we have added a ClientId and RedirectUri, the login button does nothing, and the console logs
fail: Uno.Extensions.Authentication.MSAL.MsalAuthenticationProvider[0]
SetupStorage - Error setting up storage for MSAL - Value cannot be null. (Parameter 'keyChainServiceName')
Trying to add keyChainServiceName into appsettings under the msal config section does not work
Trying to find any arguments in AddMsal relating to this settings returns nothing.

Expected behavior

The login button should work

How to reproduce it (as minimally and precisely as possible)

Use Rider on Macos, install the uno plugin, run the uno command line tool to set up the environment correctly until it says everything OK!
Create a new Solution using the Uno Cross Platform template, and enable MSAL authentication
Add a clientId, a RedirectUri, and a KeychainSecurityGroup to the appsettings.json
Run the project
Attempt to log in using the login button

Environment

Mac OS Tahoe 26.2
Rider 2025.3.2
Uno Plugin 1.9.12
.net 10

Nuget Package (s):
The default installed by the template

Package Version(s):
The default installed by the template

Affected platform(s):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)
  • Build tasks

Visual Studio:

  • 2019 (version: )
  • 2022 (version: )
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: ) 2025.3.2

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Tried googling this error with 0 results, tried arguing with an LLM about it for 30 minutes with 0 results

Activity

  1. added
    kind/bug
    triage/untriaged
    on Feb 7, 2026
  2. kazo0 commented on Feb 10, 2026

    @kazo0
    Contributor

    Thanks for the report @Flimzes !

    We are currently investigating getting proper desktop support for OIDC/MSAL providers for Windows/Linux/macOS: #2640

    The keyChainServiceName error looks new, I will make sure we track this as part of the work!

    Will keep you updated on the progress!

  3. added and removed
    triage/untriaged
    on Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/authenticationkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions