Franz.Common.Identity
1.6.19
dotnet add package Franz.Common.Identity --version 1.6.19
NuGet\Install-Package Franz.Common.Identity -Version 1.6.19
<PackageReference Include="Franz.Common.Identity" Version="1.6.19" />
<PackageVersion Include="Franz.Common.Identity" Version="1.6.19" />
<PackageReference Include="Franz.Common.Identity" />
paket add Franz.Common.Identity --version 1.6.19
#r "nuget: Franz.Common.Identity, 1.6.19"
#:package Franz.Common.Identity@1.6.19
#addin nuget:?package=Franz.Common.Identity&version=1.6.19
#tool nuget:?package=Franz.Common.Identity&version=1.6.19
Franz.Common.Identity
A foundational library within the Franz Framework that provides contracts and utilities for managing identity context across applications. This package defines the core abstractions for accessing user identity information in a consistent, provider-agnostic way.
-Current Version: 1.6.19
Features
Identity Context Management
FranzIdentityContext: unified model (UserId, Email, FullName, Roles, TenantId, DomainId).IIdentityContextAccessor: contract for resolving identity across frameworks.
Testing Support
FakeIdentityContextAccessor: simple stub for unit/integration tests.
Framework-Agnostic
- No dependency on ASP.NET Core or
HttpContext. - ASP.NET-specific implementation lives in
Franz.Common.Http.Identity.
- No dependency on ASP.NET Core or
Installation
dotnet add package Franz.Common.Identity
Usage
Access Identity Context
using Franz.Common.Identity;
public class MyService
{
private readonly IIdentityContextAccessor _identityContext;
public MyService(IIdentityContextAccessor identityContext)
{
_identityContext = identityContext;
}
public FranzIdentityContext GetIdentity()
=> _identityContext.GetCurrentIdentity();
}
Integration with Franz Framework
The Franz.Common.Identity package integrates seamlessly with:
- Franz.Common.Http.Identity: ASP.NET Core implementation + SSO providers.
- Franz.Common.Headers: standardized HTTP header propagation.
Contributing
This package is part of a private framework. Contributions are limited to the internal development team.
- Clone the repository @ Franz.Common
- Create a feature branch.
- Submit a pull request for review.
License
Licensed under the MIT License. See the LICENSE file for details.
Changelog
Version 1.6.2
Introduced
FranzIdentityContext(UserId, Email, FullName, Roles, TenantId, DomainId).Added
IIdentityContextAccessorinterface for framework-agnostic identity access.Added
FakeIdentityContextAccessorfor testing.Moved ASP.NET Core specifics into a new package: Franz.Common.Http.Identity, including:
IdentityContextAccessor(HttpContext-based implementation).AddFranzHttpIdentity()DI extension.Provider extensions:
AddFranzWsFedIdentity()(WS-Federation).AddFranzOidcIdentity()(OpenID Connect).AddFranzSaml2Identity()(SAML2 via Sustainsys).AddFranzKeycloakIdentity()(Keycloak OIDC with role normalization).
All providers normalize into
FranzIdentityContext.Config-driven setup via appsettings.json (no hardcoded values).
Version 1.3
- Upgraded to .NET 9.0.8.
- Added new features and improvements.
- Separated business concepts from mediator concepts.
- Now compatible with both in-house mediator and MediatR.
Version 1.2.65
- Upgraded to .NET 9.
| Product | Versions 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 was computed. 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. |
-
net9.0
- Franz.Common.DependencyInjection (>= 1.6.19)
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 |
|---|---|---|
| 1.6.19 | 206 | 10/25/2025 |
| 1.6.15 | 244 | 10/20/2025 |
| 1.6.14 | 236 | 10/15/2025 |
| 1.6.3 | 242 | 10/9/2025 |
| 1.6.2 | 246 | 10/7/2025 |
| 1.5.9 | 248 | 9/24/2025 |
| 1.5.4 | 235 | 9/23/2025 |
| 1.5.3 | 283 | 9/21/2025 |
| 1.5.2 | 288 | 9/21/2025 |
| 1.5.0 | 279 | 9/21/2025 |
| 1.4.4 | 253 | 9/20/2025 |
| 1.3.14 | 367 | 9/18/2025 |
| 1.3.13 | 349 | 9/18/2025 |
| 1.3.5 | 351 | 9/17/2025 |
| 1.3.4 | 367 | 9/16/2025 |
| 1.3.3 | 362 | 9/16/2025 |
| 1.3.2 | 348 | 9/15/2025 |
| 1.3.1 | 167 | 9/12/2025 |
| 1.3.0 | 353 | 8/25/2025 |
| 1.2.65 | 266 | 3/3/2025 |
| 1.2.64 | 180 | 1/29/2025 |
| 1.2.63 | 221 | 1/27/2025 |
| 1.2.62 | 211 | 1/8/2025 |