Franz.Common.Messaging.Identity
                               
                            
                                1.6.19
                            
                        
                    dotnet add package Franz.Common.Messaging.Identity --version 1.6.19
NuGet\Install-Package Franz.Common.Messaging.Identity -Version 1.6.19
<PackageReference Include="Franz.Common.Messaging.Identity" Version="1.6.19" />
<PackageVersion Include="Franz.Common.Messaging.Identity" Version="1.6.19" />
<PackageReference Include="Franz.Common.Messaging.Identity" />
paket add Franz.Common.Messaging.Identity --version 1.6.19
#r "nuget: Franz.Common.Messaging.Identity, 1.6.19"
#:package Franz.Common.Messaging.Identity@1.6.19
#addin nuget:?package=Franz.Common.Messaging.Identity&version=1.6.19
#tool nuget:?package=Franz.Common.Messaging.Identity&version=1.6.19
Franz.Common.Messaging.Identity
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: 1.6.19
- 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
| 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.Headers (>= 1.6.19)
- Franz.Common.Identity (>= 1.6.19)
- Franz.Common.Messaging (>= 1.6.19)
 
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Franz.Common.Messaging.Identity:
| Package | Downloads | 
|---|---|
| Franz.Common.Http.Messaging Shared utility library for the Franz Framework. | |
| Franz.Common.Messaging.Bootstrap 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 | 104 | 10/25/2025 | 
| 1.6.15 | 182 | 10/20/2025 | 
| 1.6.14 | 175 | 10/15/2025 | 
| 1.6.3 | 180 | 10/9/2025 | 
| 1.6.2 | 183 | 10/7/2025 | 
| 1.5.9 | 183 | 9/24/2025 | 
| 1.5.4 | 191 | 9/23/2025 | 
| 1.5.3 | 232 | 9/21/2025 | 
| 1.5.2 | 237 | 9/21/2025 | 
| 1.5.0 | 227 | 9/21/2025 | 
| 1.4.4 | 207 | 9/20/2025 | 
| 1.3.14 | 313 | 9/18/2025 | 
| 1.3.13 | 304 | 9/18/2025 | 
| 1.3.5 | 316 | 9/17/2025 | 
| 1.3.4 | 321 | 9/16/2025 | 
| 1.3.3 | 323 | 9/16/2025 | 
| 1.3.2 | 306 | 9/15/2025 | 
| 1.3.1 | 129 | 9/12/2025 | 
| 1.3.0 | 311 | 8/25/2025 | 
| 1.2.65 | 219 | 3/3/2025 | 
| 1.2.64 | 145 | 1/29/2025 | 
| 1.2.63 | 151 | 1/27/2025 | 
| 1.2.62 | 166 | 1/8/2025 |