Lyo.Authentication.Web.Components.Server 1.0.9

dotnet add package Lyo.Authentication.Web.Components.Server --version 1.0.9
                    
NuGet\Install-Package Lyo.Authentication.Web.Components.Server -Version 1.0.9
                    
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.Server" Version="1.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Authentication.Web.Components.Server" Version="1.0.9" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Authentication.Web.Components.Server" />
                    
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.Server --version 1.0.9
                    
#r "nuget: Lyo.Authentication.Web.Components.Server, 1.0.9"
                    
#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.Server@1.0.9
                    
#: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.Server&version=1.0.9
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Authentication.Web.Components.Server&version=1.0.9
                    
Install as a Cake Tool

Lyo.Authentication.Web.Components.Server

Blazor Server host adapter for Lyo.Authentication.Web.Components. Plugs the shared login / debug / profile pages into the BFF-cookie auth runtime in Lyo.Authentication.Client.

Examples

Register services

builder.Services.AddLyoAuthClient(builder.Configuration);
builder.Services.AddLyoAuthBlazorStateProvider();
builder.Services.AddLyoAuthWebComponents(builder.Configuration);
builder.Services.AddLyoAuthWebComponentsServer();

var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.MapLyoAuthSignIn();
app.MapLyoAuthHandoffCallback();
app.MapLyoAuthSignOut();

Register services (2)

<Router AppAssembly="typeof(Program).Assembly"
        AdditionalAssemblies="new[] { typeof(Lyo.Authentication.Web.Components.Pages.LoginPage).Assembly }">

What's inside

Service Role
ServerAuthSignInLauncher Sign-in 302s through the consumer's /auth/sign-in/{provider} endpoint. Sign-out submits a POST to /auth/sign-out via a dynamically constructed form (CSRF-safe).
ServerAuthSessionAccessor Unseals the HttpOnly session cookie via IDataProtectionProvider, reads the active LyoAuthSession from LyoAuthSessionStore, and rotates it through /auth/refresh for the debug page's "Refresh token" button.
ServerAuthUserClient Typed HttpClient with AddLyoAuthHandler() so calls to GET /auth/me and GET /auth/users/{id} carry the bearer and refresh on 401.

Registration

Make sure the consuming Blazor Server router picks up this package's pages, either via auto-scan or by adding the assembly to AdditionalAssemblies:

Dependencies

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

  • Lyo.Authentication.Client (direct, lyo)
  • Lyo.Authentication.Web.Components (direct, lyo)
  • Lyo.Api.Client (transitive, lyo)
  • Lyo.Api.Models (transitive, lyo)
  • Lyo.Authentication.Models (transitive, lyo)
  • Lyo.Cache (transitive, lyo)
  • Lyo.Common (transitive, lyo)
  • Lyo.Compression (transitive, lyo)
  • Lyo.DataTable.Models (transitive, lyo)
  • Lyo.DateAndTime (transitive, lyo)
  • Lyo.Diagnostic (transitive, lyo)
  • Lyo.Diagnostic.AspNetCore (transitive, lyo)
  • Lyo.Encryption (transitive, lyo)
  • Lyo.Exceptions (transitive, lyo)
  • Lyo.Hashing (transitive, lyo)
  • Lyo.Health (transitive, lyo)
  • Lyo.IO.Temp (transitive, lyo)
  • Lyo.KeyStore (transitive, lyo)
  • Lyo.Metrics (transitive, lyo)
  • Lyo.PackageMetadata (transitive, lyo)
  • Lyo.Query (transitive, lyo)
  • Lyo.Query.Models (transitive, lyo)
  • Lyo.Result (transitive, lyo)
  • Lyo.Streams (transitive, lyo)
  • Lyo.Validation (transitive, lyo)
  • Lyo.Web.Components (transitive, lyo)
  • Blazored.LocalStorage 4.5.0 (transitive, third-party)
  • BouncyCastle.Cryptography 2.6.2 (transitive, third-party, netstandard2.0)
  • EasyCompressor 2.1.0 (transitive, third-party)
  • Konscious.Security.Cryptography.Argon2 1.3.1 (transitive, third-party)
  • Microsoft.AspNetCore.Components.Authorization 10.0.5 (transitive, microsoft)
  • Microsoft.Bcl.AsyncInterfaces 10.0.5 (transitive, microsoft, netstandard2.0)
  • Microsoft.Extensions.Caching.Memory 10.0.5 (transitive, microsoft)
  • Microsoft.Extensions.Configuration.Binder 10.0.5 (transitive, microsoft)
  • Microsoft.Extensions.DependencyInjection 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)
  • MudBlazor 9.3 (transitive, third-party)
  • 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.9 0 8/22/2026
1.0.6 36 8/20/2026
1.0.4 44 8/20/2026
1.0.3 58 8/19/2026
1.0.2 64 8/19/2026
1.0.1 76 8/18/2026
1.0.0 96 8/16/2026