Tharga.Team.Blazor 2.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Tharga.Team.Blazor --version 2.0.0
                    
NuGet\Install-Package Tharga.Team.Blazor -Version 2.0.0
                    
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="Tharga.Team.Blazor" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tharga.Team.Blazor" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Tharga.Team.Blazor" />
                    
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 Tharga.Team.Blazor --version 2.0.0
                    
#r "nuget: Tharga.Team.Blazor, 2.0.0"
                    
#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 Tharga.Team.Blazor@2.0.0
                    
#: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=Tharga.Team.Blazor&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Tharga.Team.Blazor&version=2.0.0
                    
Install as a Cake Tool

Tharga Team Blazor

NuGet Nuget License

Team management Blazor components for multi-tenant applications. Works with both Blazor Server and Blazor WebAssembly.

Components

  • Team management - TeamSelector, TeamComponent, TeamDialog, InviteUserDialog, TeamInviteView.
  • API key management - ApiKeyView for team-scoped API keys.
  • User management - UserProfileView, UsersView.
  • Authentication - LoginDisplay with login/logout and team navigation.
  • Claims augmentation - TeamClaimsAuthenticationStateProvider adds TeamKey, AccessLevel, role, and scope claims. Compatible with all hosting models.
  • Audit - AuditLogView for viewing audit logs with charts and filtering.

Authentication

Built-in Azure AD (CIAM) authentication helpers. Two calls to set up Cookie + OIDC authentication:

// Program.cs
builder.AddThargaAuth();   // registers auth services
app.UseThargaAuth();       // maps /login and /logout endpoints

Add an AzureAd section to appsettings.json:

{
  "AzureAd": {
    "Authority": "https://<tenant>.ciamlogin.com/<domain>",
    "ClientId": "<client-id>",
    "TenantId": "<tenant-id>",
    "CallbackPath": "/signin-oidc"
  }
}

Customize via ThargaAuthOptions:

builder.AddThargaAuth(o =>
{
    o.LoginPath = "/sign-in";              // default: "/login"
    o.LogoutPath = "/sign-out";            // default: "/logout"
    o.ValidateConfiguration = false;       // default: true — validates AzureAd config at startup
});

UI components:

  • <LoginDisplay /> — profile menu with Gravatar when authenticated, login button when not. Navigates to /login, /logout, and profile/team pages.
  • <UserProfileView /> — displays the user's Gravatar, profile info, and authentication claims in an expandable card.

Team management

builder.Services.AddThargaTeamBlazor(o =>
{
    o.Title = "My App";
    o.RegisterTeamService<MyTeamService, MyUserService>();
});

Dependencies

Package Description
Tharga.Team.MongoDB MongoDB persistence for teams and users
Tharga.Team.Service Server-side API key auth, Swagger, audit logging
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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
2.0.1-pre.1 0 3/22/2026
2.0.0 33 3/19/2026
2.0.0-pre.5 30 3/19/2026
2.0.0-pre.4 31 3/19/2026
2.0.0-pre.3 29 3/18/2026
2.0.0-pre.2 28 3/18/2026
2.0.0-pre.1 40 3/17/2026