Franz.Common.Identity 3.0.0

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

Franz.Common.Identity

Provider-neutral identity contracts and models for authenticated application execution.

Overview

This package defines the core identity model independently of ASP.NET Core, HTTP, or any specific identity provider. Authentication and HTTP claim extraction are implemented by integration packages.

Installation

dotnet add package Franz.Common.Identity

Identity model

FranzIdentityContext carries the current identity values:

  • UserId: optional GUID subject identifier.
  • Email: optional email address.
  • FullName: optional display name.
  • Roles: optional role-name array.
  • TenantId: optional validated tenant identifier.
  • DomainId: optional validated domain identifier.

IIdentityContextAccessor exposes the individual values through GetCurrentId(), GetCurrentEmail(), GetCurrentFullName(), GetCurrentRoles(), GetCurrentTenantId(), and GetCurrentDomainId(), as well as the nullable aggregate GetCurrentIdentity().

Framework integration

The core package does not register an ASP.NET Core implementation or an authentication provider.

  • Franz.Common.Http.Identity provides AddHttpIdentityContext() and the HTTP-backed accessor.
  • Franz.Common.Http.Identity also contains provider registration extensions for OIDC, SAML2, WS-Federation, and Keycloak.
  • Franz.Common.Http.Authentication provides the explicit symmetric JWT bearer configuration helper.

Tenant and domain values should come from a validated tenant execution context, not from arbitrary request headers or untrusted claims.

Testing

Use a test implementation of IIdentityContextAccessor in unit tests. Do not make production services depend on HttpContext or a provider-specific claims principal when the provider-neutral contract is sufficient.

License

MIT. See the repository LICENSE.

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 (3)

Showing the top 3 NuGet packages that depend on Franz.Common.Identity:

Package Downloads
Franz.Common.Messaging.Identity

Shared utility library for the Franz Framework.

Franz.Common.Http.Identity

Shared utility library for the Franz Framework.

Franz.Common.Http.Client

Shared utility library for the Franz Framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 144 11/10/2026
2.3.4 403 11/1/2026
2.3.3 371 10/28/2026
2.3.2 169 10/27/2026
2.3.1 227 10/26/2026
2.3.0 303 7/21/2026
2.2.19 194 7/19/2026
2.2.18 204 7/19/2026
2.2.17 204 7/12/2026
2.2.16 206 7/2/2026
2.2.15 196 6/29/2026
2.2.14 215 6/29/2026
2.2.13 199 6/29/2026
2.2.12 191 6/28/2026
2.2.11 198 6/28/2026
2.2.10 204 6/28/2026
2.2.9 205 6/28/2026
2.2.8 202 6/28/2026
2.2.7 207 6/7/2026
2.2.6 204 6/6/2026
Loading failed