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
<PackageReference Include="Franz.Common.Identity" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Identity" Version="3.0.0" />
<PackageReference Include="Franz.Common.Identity" />
paket add Franz.Common.Identity --version 3.0.0
#r "nuget: Franz.Common.Identity, 3.0.0"
#:package Franz.Common.Identity@3.0.0
#addin nuget:?package=Franz.Common.Identity&version=3.0.0
#tool nuget:?package=Franz.Common.Identity&version=3.0.0
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.IdentityprovidesAddHttpIdentityContext()and the HTTP-backed accessor.Franz.Common.Http.Identityalso contains provider registration extensions for OIDC, SAML2, WS-Federation, and Keycloak.Franz.Common.Http.Authenticationprovides 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 | Versions 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. |
-
net10.0
- Franz.Common.DependencyInjection (>= 3.0.0)
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 |