Franz.Common.Identity
1.7.3
dotnet add package Franz.Common.Identity --version 1.7.3
NuGet\Install-Package Franz.Common.Identity -Version 1.7.3
<PackageReference Include="Franz.Common.Identity" Version="1.7.3" />
<PackageVersion Include="Franz.Common.Identity" Version="1.7.3" />
<PackageReference Include="Franz.Common.Identity" />
paket add Franz.Common.Identity --version 1.7.3
#r "nuget: Franz.Common.Identity, 1.7.3"
#:package Franz.Common.Identity@1.7.3
#addin nuget:?package=Franz.Common.Identity&version=1.7.3
#tool nuget:?package=Franz.Common.Identity&version=1.7.3
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.7.3
- Part of the private Franz Framework ecosystem.
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.
Version 1.6.20
- Updated to .NET 10.0
| 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 (>= 1.7.3)
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.7.3 | 105 | 12/22/2025 |
| 1.7.2 | 118 | 12/21/2025 |
| 1.7.1 | 151 | 12/20/2025 |
| 1.7.0 | 309 | 12/16/2025 |
| 1.6.21 | 232 | 11/27/2025 |
| 1.6.20 | 237 | 11/24/2025 |
| 1.6.19 | 225 | 10/25/2025 |
| 1.6.15 | 253 | 10/20/2025 |
| 1.6.14 | 253 | 10/15/2025 |
| 1.6.3 | 255 | 10/9/2025 |
| 1.6.2 | 255 | 10/7/2025 |
| 1.5.9 | 260 | 9/24/2025 |
| 1.5.4 | 248 | 9/23/2025 |
| 1.5.3 | 294 | 9/21/2025 |
| 1.5.2 | 298 | 9/21/2025 |
| 1.5.0 | 290 | 9/21/2025 |
| 1.4.4 | 272 | 9/20/2025 |
| 1.3.14 | 380 | 9/18/2025 |
| 1.3.13 | 364 | 9/18/2025 |
| 1.3.5 | 363 | 9/17/2025 |
| 1.3.4 | 375 | 9/16/2025 |
| 1.3.3 | 378 | 9/16/2025 |
| 1.3.2 | 363 | 9/15/2025 |
| 1.3.1 | 179 | 9/12/2025 |
| 1.3.0 | 361 | 8/25/2025 |
| 1.2.65 | 276 | 3/3/2025 |
| 1.2.64 | 194 | 1/29/2025 |
| 1.2.63 | 231 | 1/27/2025 |
| 1.2.62 | 221 | 1/8/2025 |