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

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


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.

  1. Clone the repository @ Franz.Common
  2. Create a feature branch.
  3. 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 IIdentityContextAccessor interface for framework-agnostic identity access.

  • Added FakeIdentityContextAccessor for 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 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. 
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
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