Franz.Common.Messaging.Identity
2.3.1
dotnet add package Franz.Common.Messaging.Identity --version 2.3.1
NuGet\Install-Package Franz.Common.Messaging.Identity -Version 2.3.1
<PackageReference Include="Franz.Common.Messaging.Identity" Version="2.3.1" />
<PackageVersion Include="Franz.Common.Messaging.Identity" Version="2.3.1" />
<PackageReference Include="Franz.Common.Messaging.Identity" />
paket add Franz.Common.Messaging.Identity --version 2.3.1
#r "nuget: Franz.Common.Messaging.Identity, 2.3.1"
#:package Franz.Common.Messaging.Identity@2.3.1
#addin nuget:?package=Franz.Common.Messaging.Identity&version=2.3.1
#tool nuget:?package=Franz.Common.Messaging.Identity&version=2.3.1
Franz.Common.Messaging.Identity
Messaging and distributed integration for the Franz.Common framework on .NET 10.
Overview
The Franz.Common.Messaging.Identity package provides messaging and distributed integration within Franz.Common. It is designed to compose with the rest of the framework rather than imposing unrelated infrastructure choices on every application.
Installation
dotnet add package Franz.Common.Messaging.Identity
Design principles
- Explicit composition: register only the capabilities the application needs.
- Clear boundaries: keep domain and application contracts independent from provider-specific infrastructure where the package's role permits it.
- Predictable behavior: make configuration, failure modes, and lifecycle ownership visible rather than relying on hidden conventions.
- Operational readiness: validate security, resilience, diagnostics, and compatibility for the actual deployment environment.
Usage and configuration
Follow the package-specific setup, configuration, and code examples below. Only configure external services when this package requires them, and keep secrets outside source control.
Package-specific guide
A library within the Franz Framework designed to integrate identity management with messaging workflows. This package provides tools for handling authorization contexts, building identity-based message structures, and ensuring seamless communication between identity and messaging services.
Features
- Identity Context Integration:
IdentityContextAccessorfor managing identity-specific data within messaging workflows.
- Authorization Message Builder:
AuthorizationMessageBuilderfor constructing messages with embedded authorization data.
- Service Registration:
ServiceCollectionExtensionsfor simplifying the setup of identity-aware messaging services.
Version Information
Current Version: v2.3.0
- Part of the private Franz Framework ecosystem.
Dependencies
This package relies on:
- Franz.Common.Headers: For managing and propagating headers in messaging workflows.
- Franz.Common.Identity: Core utilities for identity and authorization management.
- Franz.Common.Messaging: Provides foundational messaging utilities and abstractions.
Installation
From Private Azure Feed
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Messaging.Identity
Usage
1. Access Identity Context in Messaging
Use IdentityContextAccessor to retrieve identity-related data in messaging workflows:
using Franz.Common.Messaging.Identity;
public class MyService
{
private readonly IdentityContextAccessor _identityContextAccessor;
public MyService(IdentityContextAccessor identityContextAccessor)
{
_identityContextAccessor = identityContextAccessor;
}
public string GetUserId()
{
return _identityContextAccessor.User?.FindFirst("sub")?.Value;
}
}
2. Build Authorization Messages
Leverage AuthorizationMessageBuilder to create messages with embedded authorization data:
using Franz.Common.Messaging.Identity;
var builder = new AuthorizationMessageBuilder();
var message = builder.WithUserId("12345")
.WithRoles(new[] { "Admin", "User" })
.Build();
3. Register Identity-Aware Messaging Services
Use ServiceCollectionExtensions to register identity-aware messaging components:
using Franz.Common.Messaging.Identity.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMessagingWithIdentity();
}
}
Integration with Franz Framework
The Franz.Common.Messaging.Identity package integrates seamlessly with:
- Franz.Common.Messaging: Provides messaging abstractions and utilities.
- Franz.Common.Identity: Extends identity and authorization support into messaging workflows.
- Franz.Common.Headers: Facilitates header management for identity-based messages.
Contributing
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
- Clone the repository. @ https://github.com/bestacio89/Franz.Common/
- Create a feature branch.
- Submit a pull request for review.
License
This library is licensed under the MIT License. See the LICENSE file for more details.
Changelog
Version 1.2.65
- Introduced
IdentityContextAccessorfor managing identity contexts in messaging workflows. - Added
AuthorizationMessageBuilderfor constructing identity-aware messages. - Integrated
ServiceCollectionExtensionsfor simplified registration of identity-aware messaging services.
Version 1.3
- Upgraded to .NET 9.0.8
- Added new features and improvements
- Separated business concepts from mediator concepts
- Now compatible with both the in-house mediator and MediatR
v2.0.1 – Internal Modernization
- Messaging and infrastructure refactored for async, thread-safety, and modern .NET 10 patterns.
- All APIs remain fully backward compatible.
- Tests, listeners, and pipeline components modernized.
| 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.Headers (>= 2.3.1)
- Franz.Common.Identity (>= 2.3.1)
- Franz.Common.Messaging (>= 2.3.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Franz.Common.Messaging.Identity:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Bootstrap
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Messaging
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.1 | 74 | 10/26/2026 |
| 2.3.0 | 162 | 7/21/2026 |
| 2.2.19 | 153 | 7/19/2026 |
| 2.2.18 | 146 | 7/19/2026 |
| 2.2.17 | 142 | 7/12/2026 |
| 2.2.16 | 162 | 7/2/2026 |
| 2.2.15 | 154 | 6/29/2026 |
| 2.2.14 | 154 | 6/29/2026 |
| 2.2.13 | 149 | 6/29/2026 |
| 2.2.12 | 141 | 6/28/2026 |
| 2.2.11 | 152 | 6/28/2026 |
| 2.2.10 | 145 | 6/28/2026 |
| 2.2.9 | 159 | 6/28/2026 |
| 2.2.8 | 144 | 6/28/2026 |
| 2.2.7 | 154 | 6/7/2026 |
| 2.2.6 | 153 | 6/6/2026 |
| 2.2.5 | 154 | 6/4/2026 |
| 2.2.4 | 148 | 6/3/2026 |
| 2.2.3 | 148 | 6/2/2026 |
| 2.2.2 | 151 | 6/2/2026 |