VOOZH about

URL: https://www.nuget.org/packages/Tharga.Team

⇱ NuGet Gallery | Tharga.Team 3.0.4




👁 Image
Tharga.Team 3.0.4

dotnet add package Tharga.Team --version 3.0.4
 
 
NuGet\Install-Package Tharga.Team -Version 3.0.4
 
 
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" Version="3.0.4" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tharga.Team" Version="3.0.4" />
 
Directory.Packages.props
<PackageReference Include="Tharga.Team" />
 
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 --version 3.0.4
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tharga.Team, 3.0.4"
 
 
#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@3.0.4
 
 
#: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&version=3.0.4
 
Install as a Cake Addin
#tool nuget:?package=Tharga.Team&version=3.0.4
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Tharga Team

👁 NuGet
👁 Nuget

Domain models, service abstractions, and authorization primitives for multi-tenant Blazor applications. This package has no server-side dependencies and works with both Blazor Server and Blazor WebAssembly.

What's included

Team and user models

  • ITeam / ITeam<TMember> - Team aggregate with members.
  • ITeamMember - Team member with AccessLevel, invitation state, tenant roles, and scope overrides.
  • IUser - User identity.
  • Invitation, InviteUserModel, MembershipState.

Service interfaces

  • ITeamService - Team CRUD, member management, invitations. Includes GetMembersAsync(teamKey) returning IAsyncEnumerable<ITeamMember> for consumers that need to enumerate members without knowing the per-consumer TMember type.
  • ITeamManagementService - Scope-enforced mutations (create, rename, delete, invite, etc.).
  • IUserService - Current user resolution.
  • IApiKeyAdministrationService / IApiKeyManagementService - API key management.
  • IApiKeyLifecycleHandler - Opt-in hook receiving an API key's private token on create/recycle (and a tokenless delete signal) via ApiKeyLifecycleContext / ApiKeyLifecycleReason. Registered through ThargaPlatformOptions.AddApiKeyLifecycleHandler<T>().

Authorization

  • AccessLevel enum - Owner, Administrator, User, Viewer, Custom. Custom grants no inherited base scopes (effective scopes = roles ∪ scope overrides only) for least-privilege keys/members.
  • Tag record - System-set key-value tag on an API key (a list, so a key may repeat). Set at creation only; surfaced as a tag.{Key} claim on the authenticated principal.
  • TeamClaimTypes - Claim type constants (TeamKey, AccessLevel, Scope, TagPrefix).
  • IScopeRegistry / ScopeRegistry - Register and resolve scopes per access level.
  • ITenantRoleRegistry / TenantRoleRegistry - Register tenant roles with associated scopes.
  • RequireAccessLevelAttribute / RequireScopeAttribute - Declarative authorization on service methods.
  • TeamScopes / ApiKeyScopes / AuditScopes - Built-in scope constants (audit:read gates the audit log).
  • ISystemScopeRegistry / ISystemRoleRegistry - Global (system) scopes for system API keys, and a mapping of app/global roles (e.g. Developer) to those scopes for privileged users. Configured via o.ConfigureSystemScopes / o.ConfigureSystemRoles.

Base classes

  • TeamServiceBase - Implement your own team service backend.
  • UserServiceBase - Implement your own user service backend.

Related packages

Package Description
Tharga.Team.Blazor Team management Blazor UI components, authentication
Tharga.Team.MongoDB MongoDB persistence for teams and users
Tharga.Team.Service Server-side API key auth, Swagger, audit logging
Tharga.Blazor Generic Blazor UI components (buttons, breadcrumbs, etc.)
Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (3)

Showing the top 3 NuGet packages that depend on Tharga.Team:

Package Downloads
Tharga.Team.Service

Server-side API-key authentication, authorization enforcement, controller registration, OpenAPI/Swagger setup, and audit logging for ASP.NET Core projects.

Tharga.Team.MongoDB

MontoDB Team features for Tharga Blazor.

Tharga.Team.Blazor

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.4 149 6/14/2026
3.0.3 160 6/11/2026
3.0.2 169 6/4/2026
3.0.1 170 6/2/2026
3.0.0 161 6/2/2026
2.1.3 155 5/30/2026
2.1.2 158 5/29/2026
2.1.1 165 5/26/2026
2.1.0 163 5/18/2026
2.0.18 226 5/11/2026
2.0.17 174 5/10/2026
2.0.16 161 5/7/2026
2.0.15 188 4/29/2026
2.0.14 151 4/29/2026
2.0.13 163 4/21/2026
2.0.12 145 4/20/2026
2.0.11 178 4/18/2026
2.0.10 151 4/17/2026
2.0.9 145 4/17/2026
2.0.8 170 4/8/2026
Loading failed