/uno-platform-studio:uno-authenticationfrom uno-platform-studio
Configures sign-in for Uno Platform apps using Uno.Extensions.Authentication: supports custom login, MSAL (Entra ID, B2C), OpenID Connect, and OAuth redirect providers with token storage, refresh, and HTTP header injection.
Ships in uno-platform-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Uno.Extensions.Authentication owns the whole session: a provider signs the user in, the tokens are stored in the platform's secure storage, an HTTP handler adds the access token to API calls and refreshes it on a 401, and IAuthenticationService.LoggedOut reports when the session ends. Generic agents write their own IAuthService, keep tokens in settings or a singleton, and set Authorization headers by hand; each of those breaks refresh, restart, or logout. This skill routes you to the provider and the flow.
dotnet new unoapp -preset recommended -auth <custom|msal|oidc|Web>, alongside the flags the uno-build-app skill gives. Then fix the template gaps listed in the critical rules.references/flow.md; add references/http.md when the app calls an API.uno_platform_docs_search(...), then uno_platform_docs_fetch(sourcePath="…") with the sourcePath from a result (a relative .md path). Never pass a URL, .html link, or hand-built path.| Task | Read | Key APIs |
|---|---|---|
| Username/password or API-key login against the app's own backend, or a local prototype check | references/custom.md | AddCustom, AddCustom<TService>, Login/Refresh/Logout callbacks |
| Sign in with Microsoft Entra ID, Microsoft accounts, or Azure AD B2C | references/msal.md | AddMsal(window), Scopes, Builder, InteractiveBuilder |
MSAL redirect URIs, Android activity, iOS URL scheme and keychain, WebAssembly spa registration | references/msal-platforms.md | BrowserTabActivity, AuthenticationContinuationHelper, keychain-access-groups |
| Any OpenID Connect provider (IdentityServer, Keycloak, Auth0, Okta) | references/oidc.md | AddOidc, OidcClientOptions, AutoRedirectUriFromWebAuthenticationBroker |
OIDC redirect per head: Android activity scheme, iOS CFBundleURLTypes, WebAssembly callback | references/oidc-platforms.md | WebAuthenticationBrokerActivityBase, CFBundleURLTypes, AutoRedirectUriFromWebAuthenticationBroker |
| OIDC or Web sign-in on the Skia desktop head: which Uno.Extensions version has the loopback broker, how to opt in, the loopback redirect URI, the pre-dev.135 workaround | references/oidc-desktop.md | DesktopWebAuthenticationBrokerProvider, UnoExtensionsVersion, DefaultReturnUri, AddInMemoryCollection |
| A backend that redirects back with tokens in the URL (custom OAuth, social login) | references/web.md | AddWeb, LoginStartUri, LogoutStartUri, PostLogin |
| Start page by sign-in state, login page, logout, expired session, optional sign-in | references/flow.md | RefreshAsync, LoggedOut, Qualifiers.ClearBackStack, initialNavigate |
| Access token on Refit/Kiota calls, 401 refresh, cookies, reading tokens and claims | references/http.md | AddRefitClient, AddKiotaClient, Headers.NoRefresh, ITokenCache |
IAuthenticationService and ITokenCache; build no session layer of your own. Inject IAuthenticationService into Models; never create IAuthService, a token store, a "current user" singleton, or an Authorization header by hand.Authentication (custom and web providers), AuthenticationMsal, or AuthenticationOidc in <UnoFeatures>. API clients need HttpRefit or HttpKiota; Http alone adds neither Refit nor Kiota..UseAuthentication(auth => auth.AddCustom(...)) inside Configure. For MSAL, OIDC and Web, the provider's name argument is also its configuration section (default Msal, Oidc, Web; the template uses MsalAuthentication, OidcAuthentication, WebAuthentication). AddCustom reads no section. AddMsal takes the Window: .Configure((host, window) => ...).Login returns a new dictionary holding only tokens (TokenCacheExtensions.AccessTokenKey, ...), or null to fail. The template returns the credentials dictionary, which stores the password: replace that.LoginAsync(Dispatcher, credentials). The MSAL provider throws without one; inject IDispatcher into the login Model.LoggedOut once, at app lifetime, and navigate to login with Qualifiers.ClearBackStack there. It fires on logout, on a failed refresh, and on an API 401 that a refresh could not fix. The recommended template does not subscribe, so logout leaves the user on the signed-in page. After LogoutAsync, do not navigate again.AddRefitClient, AddKiotaClient or AddClient inside UseHttp. AddHttpClient and new HttpClient() send no token. Mark the token-refresh endpoint [Headers(Uno.Extensions.Authentication.Headers.NoRefresh)].AddWeb without LogoutStartUri cannot sign out (LogoutAsync returns false). OIDC needs the offline_access scope, or the session ends at every restart. On the Skia desktop head, OIDC and Web sign-in need Uno.Extensions 8.0.0-dev.135 or later plus a loopback http://localhost:<port>/... redirect URI: from that version AddOidc and AddWeb register a loopback WebAuthenticationBroker; Uno.Sdk 7.0.0-dev.95 and later pin such a version; on an older Sdk Uno's broker throws NotImplementedException there and the app must opt in or bring its own browser (references/oidc-desktop.md). The desktop listener takes any local request, so AddWeb apps must check a state (references/web.md). OIDC's LogoutAsync clears the tokens whatever the browser returned; before dev.135 it sent no id_token_hint, so identity providers did not redirect back and the call waited up to 300 s. The template's redirect scheme myprotocol is a placeholder in the Android activities, iOS Info.plist (where it is also misplaced), Package.appxmanifest and appsettings.development.json; for OIDC and Web, replace it everywhere. For MSAL, the Android activity takes msal<client-id> and Info.plist takes msauth.<bundle-id> under CFBundleURLTypes, but delete the RedirectUri key from both appsettings files rather than filling it: a configured value replaces the per-platform redirect URIs on every head, so msal<client-id>://auth there breaks iOS, WebAssembly and desktop (references/msal-platforms.md). The template's KeychainSecurityGroup key is read by nothing. Tokens live in Keychain on iOS, so the app needs keychain entitlements there.Verified against Uno.Extensions 8.0.0-dev.85 (pinned by Uno.Sdk 7.0.0-dev.77), 8.0.0-dev.135 (the first with desktop sign-in) and 8.0.0-dev.150 (Uno.Sdk 7.0.0-dev.115), with Uno.Templates 7.0.0-dev.77 and 7.0.0-dev.115. On other versions, check the template output and the docs.
uno-navigation for routes, initialNavigate, and Qualifiers.ClearBackStack (references/qualifiers.md).uno-mvux for the login Model's states and commands.uno-kiota for generating, registering and calling the Kiota client the token is added to.uno-testing to exercise sign-in, logout, and the expired-session path in the running app.references/custom.md (opens in a new tab)references/flow.md (opens in a new tab)references/http.md (opens in a new tab)references/msal-platforms.md (opens in a new tab)references/msal.md (opens in a new tab)references/oidc-desktop.md (opens in a new tab)references/oidc-platforms.md (opens in a new tab)references/oidc.md (opens in a new tab)references/web.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
uno-platform, authentication, msal, openid-connect, oauth, token-management
npx claudepluginhub unoplatform/studio --plugin uno-platform-studio9 skills in this plugin
/uno-build-appEnd-to-end workflow for building Uno Platform apps and features: discovery, a short blueprint, one complete feature built and exercised before its pattern is repeated, and an honest completion report. Use when creating a new Uno Platform app from a brief, adding a feature to an existing Uno app, repairing a broken Uno page or feature, or diagnosing an Uno binding, state or navigation defect. Use it for any 'how should I implement this' feature request that spans a page, its state, storage or a platform API such as a file or photo picker. Not for WPF, WinUI-only or .NET MAUI projects. For a single control or API question, load the matching domain skill (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) instead./uno-kiotaTyped REST API clients for Uno Platform apps with Uno.Extensions.Http.Kiota: the HttpKiota feature, generating a client from an OpenAPI/Swagger document with the Kiota CLI (kiota generate, kiota update, kiota-lock.json), registering it with AddKiotaClient inside UseHttp, the endpoint Url per environment, request builders, query and path parameters, headers, errors (ApiException, ResponseStatusCode, typed error models), retries and cancellation, and the JSON-only serializer limit (text/plain, form, multipart, application/problem+json). Use whenever an Uno app calls a web API, loads data from a backend or the template's server project, consumes an OpenAPI or Swagger spec, or needs a generated HTTP client, even when the request only says 'get the data from our API'. Also use when the project lists HttpKiota in <UnoFeatures>, has a Content/Client folder or kiota-lock.json, or when an agent is about to write HttpClient calls by hand. Read this skill before writing any API-calling code./uno-mvuxMVUX state management for Uno Platform apps: feeds, states, FeedView, commands, Models. Covers IFeed<T>, IState<T>, IListFeed<T>, IListState<T>, selection, pagination, entity messaging, and immutable partial record Models with generated ViewModels (Model-View-Update-eXtended). Use whenever an Uno Platform app that uses MVUX, or a new app with no pattern chosen yet, loads async data from a service or API, binds user input, shows loading/error/empty states, edits a collection, or needs a Model layer. Also use when the project has <UnoFeatures>MVUX</UnoFeatures> or *Model records, or the user asks how MVUX compares with MVVM, or reports a bound command button that stays disabled or a list or value that does not update on screen. Not for apps built on MVVM (<UnoFeatures>Mvvm</UnoFeatures>, CommunityToolkit.Mvvm, ObservableObject ViewModels): keep their pattern. Read this skill before writing any MVUX Model, feed, state, or command code./uno-navigationUno.Extensions.Navigation for Uno Platform apps: route registration with ViewMap, DataViewMap, ResultDataViewMap, and RouteMap; region-based navigation with Region.Attached, Region.Name, and Region.Navigator; INavigator code navigation (NavigateViewModelAsync, NavigateBackAsync, *ForResultAsync); declarative uen:Navigation.Request and Navigation.Data in XAML; dialogs, flyouts, and message prompts; back-stack qualifiers (-/ and !/); TabBar, NavigationView, responsive, and Frame shell templates; ContentControl and visibility regions; troubleshooting. Use whenever an Uno app needs a new page, a details or settings screen, a 'go to' or 'open' action, a back button, tabs, a sidebar, hamburger menu, drawer, app shell, modal, popup, confirmation dialog, deep link, login-to-home flow, a tab tap that replaces the whole page, or must pass an item or ID to another page, even if the user never says 'navigation'. Read this before adding any Page or wiring a Click that changes the screen./uno-platformEntry point for building or changing any Uno Platform app: cross-platform .NET UI with WinUI/XAML or C# Markup targeting Windows, iOS, Android, WebAssembly, macOS, Linux, and embedded. Use this skill whenever the user mentions Uno Platform, an Uno project (UnoFeatures, uno.sdk, Uno.Extensions, Uno.Toolkit), WinUI XAML in a cross-platform context, Hot Design, Hot Reload, Uno Studio, or asks to scaffold, extend, restyle, navigate, test, or fix an Uno app, even when the request only says 'the app' or names a page, control, or feature. It routes to the domain skills (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) and sets the project-wide rules that apply before any of them./uno-testingAutomated UI testing and verification of a running Uno Platform app through the Uno App MCP (the uno_app_* tools): start the app, take a visual-tree snapshot, find elements by automation id, x:Name, text or type, click, type, press keys, scroll, drive navigation flows, read an element's state or DataContext, capture screenshots, and assert on text, visibility, enabled state, list counts, dialogs, layout, and FeedView loading/error/value states. Use whenever the user says check that, verify, test the UI, does it render, click through, make sure the button works, take a screenshot, why is X not visible, or asks for end-to-end or visual regression testing of an Uno app. Also use after any UI change you made when the uno_app_* tools are available, so the result is confirmed in the real app rather than assumed from the code. Before verifying a Release build, where the App MCP is not available, load this skill: it gives the steps for that path.Other plugins' skills for the same job