Lyo.Authentication.Web.Components 1.0.1

dotnet add package Lyo.Authentication.Web.Components --version 1.0.1
                    
NuGet\Install-Package Lyo.Authentication.Web.Components -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lyo.Authentication.Web.Components" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Authentication.Web.Components" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Authentication.Web.Components" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.Authentication.Web.Components --version 1.0.1
                    
#r "nuget: Lyo.Authentication.Web.Components, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lyo.Authentication.Web.Components@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.Authentication.Web.Components&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Authentication.Web.Components&version=1.0.1
                    
Install as a Cake Tool

Lyo.Authentication.Web.Components

Host-agnostic Razor / MudBlazor components for Lyo authentication. Ships the Login, Auth Debug, and Profile pages plus the abstractions that the host adapter ( Lyo.Authentication.Web.Components.Server or Lyo.Authentication.Web.Components.Wasm) plugs into.

Examples

Configuration

{
  "LyoAuthWebComponents": {
    "EnablePasswordSignIn": true,
    "ShowRememberMe": true,
    "Providers": [
      { "Name": "google", "DisplayName": "Sign in with Google", "IconKey": "Icons.Material.Filled.Google" },
      { "Name": "keycloak:my-realm", "DisplayName": "Sign in with Keycloak", "IconKey": "Icons.Material.Filled.Lock" }
    ]
  }
}

Register services

services.AddLyoAuthWebComponents(configuration);
// then pick exactly one host adapter:
services.AddLyoAuthWebComponentsServer();
// or
services.AddLyoAuthWebComponentsWasm(configuration);

Pages

Route(s) Component Purpose
/auth/login, /auth/login/{*ReturnUrl} LoginPage Provider buttons + optional username/password card.
/auth/debug DebugPage Active session inspector: expiry, scopes, claims, decoded JWT.
/auth/profile, /auth/profile/{userId:guid} ProfilePage Current user (no segment) or arbitrary user (with {userId}, requires auth.users.read scope).

All three are wrapped in LyoElementRoot so each rendered root gets a deterministic DOM id (override via ElementId).

Abstractions (Abstractions/)

  • IAuthSignInLauncherSignInAsync(provider, returnUrl) + SignOutAsync().
  • IAuthUserClientGetMeAsync() + GetUserAsync(id). Wraps GET /auth/me and GET /auth/users/{id}.
  • IAuthSessionAccessorGetCurrentAsync() + RefreshAsync(). Reads the host's session store; never exposes the refresh token itself.
  • IAuthProviderCatalog — Source of the provider buttons. Default config-bound impl is registered.
  • IAuthPasswordSignIn (optional) — local username/password sign-in. Not registered by default. When absent, the password card on LoginPage is hidden.

Configuration

Providers[].Name must match the canonical OIDC provider name registered on the API (the same value used in /auth/login/{provider}).

Registration

The Razor pages are automatically discovered by the consuming Blazor host via the standard Router AppAssembly=... plus AdditionalAssemblies mechanism — add typeof(Lyo.Authentication.Web.Components.Pages.LoginPage).Assembly to your router if your app does not auto-scan referenced assemblies.

Password card (optional)

The username/password card on LoginPage is purely additive: it renders only when both 1. IAuthPasswordSignIn is registered, AND 2. LyoAuthWebComponentsOptions.EnablePasswordSignIn is true (default). The Lyo BFF / API stack does not currently ship a password grant. Consumers that want this card supply their own IAuthPasswordSignIn (e.g. against a custom /account/login endpoint).

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Authentication.Models — (direct, lyo)
  • Lyo.Web.Components — (direct, lyo)
  • Microsoft.AspNetCore.Components.Authorization 10.0.5 — (direct, microsoft)
  • MudBlazor 9.3 — (direct, third-party)
  • Lyo.Api.Client — (transitive, lyo)
  • Lyo.Api.Models — (transitive, lyo)
  • Lyo.Common — (transitive, lyo)
  • Lyo.DataTable.Models — (transitive, lyo)
  • Lyo.DateAndTime — (transitive, lyo)
  • Lyo.Diagnostic — (transitive, lyo)
  • Lyo.Encryption — (transitive, lyo)
  • Lyo.Exceptions — (transitive, lyo)
  • Lyo.Hashing — (transitive, lyo)
  • Lyo.IO.Temp — (transitive, lyo)
  • Lyo.KeyStore — (transitive, lyo)
  • Lyo.Metrics — (transitive, lyo)
  • Lyo.PackageMetadata — (transitive, lyo)
  • Lyo.Query.Models — (transitive, lyo)
  • Lyo.Result — (transitive, lyo)
  • Lyo.Streams — (transitive, lyo)
  • Lyo.Validation — (transitive, lyo)
  • Blazored.LocalStorage 4.5.0 — (transitive, third-party)
  • BouncyCastle.Cryptography 2.6.2 — (transitive, third-party, netstandard2.0)
  • Konscious.Security.Cryptography.Argon2 1.3.1 — (transitive, third-party)
  • Microsoft.Bcl.AsyncInterfaces 10.0.5 — (transitive, microsoft, netstandard2.0)
  • Microsoft.Extensions.Configuration.Binder 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.5 — (transitive, microsoft, net10.0, netstandard2.0)
  • Microsoft.Extensions.Hosting.Abstractions 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Http 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Logging.Abstractions 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Options.ConfigurationExtensions 10.0.5 — (transitive, microsoft)
  • System.Buffers 4.6.1 — (transitive, microsoft, netstandard2.0)
  • System.ComponentModel.Annotations 5.0.0 — (transitive, microsoft)
  • System.IO.Hashing 10.0.5 — (transitive, microsoft, net10.0)
  • System.Memory 4.6.3 — (transitive, microsoft, netstandard2.0)
  • System.Text.Json 10.0.5 — (transitive, microsoft, netstandard2.0)
  • System.Threading.Tasks.Extensions 4.6.3 — (transitive, microsoft, netstandard2.0)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Lyo.Authentication.Web.Components:

Package Downloads
Lyo.Authentication.Web.Components.Server

Blazor Server host adapter for `Lyo.Authentication.Web.Components`. Wires the shared login / debug / profile pages to the BFF-cookie auth runtime in `Lyo.Authentication.Client` (HttpOnly session cookie + server-side session store + delegating handler).

Lyo.Authentication.Web.Components.Wasm

Blazor WebAssembly host adapter for `Lyo.Authentication.Web.Components`. Pure-browser token flow: exchanges the API's handoff code in the WASM client, holds the resulting access/refresh tokens in `Blazored.LocalStorage`, and injects the bearer (with auto-refresh) into outbound `HttpClient` calls.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 0 8/18/2026
1.0.0 65 8/16/2026