Tharga.Team.Blazor 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tharga.Team.Blazor --version 2.0.1
                    
NuGet\Install-Package Tharga.Team.Blazor -Version 2.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="Tharga.Team.Blazor" Version="2.0.1" />
                    
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.1" />
                    
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.1
                    
#r "nuget: Tharga.Team.Blazor, 2.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 Tharga.Team.Blazor@2.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=Tharga.Team.Blazor&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Tharga.Team.Blazor&version=2.0.1
                    
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.

Use AddThargaPlatform to register all Platform services in one call:

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

var app = builder.Build();
app.UseThargaPlatform();

This registers auth (Azure AD + OIDC), API key authentication, Blazor components, and controllers with sensible defaults. See the main README for the full setup including MongoDB.

Individual Registration

For partial or custom setups, use the individual methods:

Authentication

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

Requires an AzureAd section in appsettings.json:

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

Team management

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

UI components:

  • <LoginDisplay /> — profile menu with Gravatar when authenticated, login button when not.
  • <UserProfileView /> — displays the user's profile info and authentication claims.

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.8 84 4/8/2026
2.0.7 101 4/6/2026
2.0.5 85 4/5/2026
2.0.4 94 4/4/2026
2.0.3 93 4/3/2026
2.0.3-pre.1 46 4/3/2026
2.0.2 89 3/25/2026
2.0.2-pre.1 45 3/25/2026
2.0.1 82 3/24/2026
2.0.1-pre.5 46 3/24/2026
2.0.1-pre.4 42 3/24/2026
2.0.1-pre.3 47 3/23/2026
2.0.1-pre.2 43 3/23/2026
2.0.1-pre.1 47 3/22/2026
2.0.0 93 3/19/2026
2.0.0-pre.5 43 3/19/2026
2.0.0-pre.4 43 3/19/2026
2.0.0-pre.3 42 3/18/2026
2.0.0-pre.2 41 3/18/2026
2.0.0-pre.1 54 3/17/2026