![]() |
VOOZH | about |
dotnet add package Franz.Common.Http.Identity --version 2.2.7
NuGet\Install-Package Franz.Common.Http.Identity -Version 2.2.7
<PackageReference Include="Franz.Common.Http.Identity" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http.Identity" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http.Identity" />Project file
paket add Franz.Common.Http.Identity --version 2.2.7
#r "nuget: Franz.Common.Http.Identity, 2.2.7"
#:package Franz.Common.Http.Identity@2.2.7
#addin nuget:?package=Franz.Common.Http.Identity&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.Identity&version=2.2.7Install as a Cake Tool
A utility library within the Franz Framework that enhances ASP.NET Core identity management for HTTP-based applications. This package provides tools for identity context access, dependency injection, and plug-and-play SSO providers (WS-Fed, OIDC, SAML2, Keycloak).
--Current Version: v2.2.7
Identity Context Access
IdentityContextAccessor: resolves identity consistently from HttpContext (headers & claims).FranzIdentityContext (UserId, Email, FullName, Roles, TenantId, DomainId).Dependency Injection
AddFranzHttpIdentity(): registers identity accessor and supporting services.Authentication Providers (config-driven via appsettings.json):
AddFranzWsFedIdentity() – WS-Federation.AddFranzOidcIdentity() – OpenID Connect.AddFranzSaml2Identity() – SAML2 (via Sustainsys).AddFranzKeycloakIdentity() – Keycloak (OIDC + role normalization).Claims Normalization
FranzIdentityContext.dotnet add package Franz.Common.Http.Identity
builder.Services.AddFranzHttpIdentity();
Identity providers are registered via DI extensions and configured in appsettings.json.
builder.Services.AddFranzWsFedIdentity(builder.Configuration);
appsettings.json
"FranzIdentity": {
"WsFed": {
"MetadataAddress": "https://login.microsoftonline.com/{tenant}/federationmetadata/2007-06/federationmetadata.xml",
"Wtrealm": "https://myapp.example.com/"
}
}
builder.Services.AddFranzOidcIdentity(builder.Configuration);
appsettings.json
"FranzIdentity": {
"Oidc": {
"Authority": "https://login.microsoftonline.com/{tenant}/v2.0",
"ClientId": "my-client-id",
"ClientSecret": "super-secret",
"CallbackPath": "/signin-oidc"
}
}
builder.Services.AddFranzSaml2Identity(builder.Configuration);
appsettings.json
"FranzIdentity": {
"Saml2": {
"EntityId": "https://myapp.example.com/",
"IdpMetadata": "https://idp.example.com/metadata",
"CallbackPath": "/signin-saml"
}
}
builder.Services.AddFranzKeycloakIdentity(builder.Configuration);
appsettings.json
"FranzIdentity": {
"Keycloak": {
"Authority": "https://keycloak.example.com/auth/realms/myrealm",
"ClientId": "franz-web",
"ClientSecret": "super-secret",
"CallbackPath": "/signin-keycloak"
}
}
app.MapGet("/whoami", (IIdentityContextAccessor ctx) =>
{
var identity = ctx.GetCurrentIdentity();
return Results.Ok(new
{
identity.UserId,
identity.Email,
identity.FullName,
identity.Roles,
identity.TenantId,
identity.DomainId
});
});
The Franz.Common.Http.Identity package integrates seamlessly with:
This package is part of a private framework. Contributions are limited to the internal development team.
Licensed under the MIT License. See the LICENSE file for details.
Added IdentityContextAccessor (HttpContext-based).
Introduced AddFranzHttpIdentity() DI extension.
Added provider extensions:
AddFranzWsFedIdentity).AddFranzOidcIdentity).AddFranzSaml2Identity).AddFranzKeycloakIdentity).Config-driven setup via appsettings.json.
Unified claims mapping into FranzIdentityContext.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Franz.Common.Http.Identity:
| Package | Downloads |
|---|---|
|
Franz.Common.SSO
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Bootstrap
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 113 | 6/7/2026 |
| 2.2.6 | 117 | 6/6/2026 |
| 2.2.5 | 121 | 6/4/2026 |
| 2.2.4 | 112 | 6/3/2026 |
| 2.2.3 | 112 | 6/2/2026 |
| 2.2.2 | 116 | 6/2/2026 |
| 2.2.1 | 115 | 5/24/2026 |
| 2.1.4 | 123 | 4/27/2026 |
| 2.1.3 | 113 | 4/26/2026 |
| 2.1.2 | 114 | 4/26/2026 |
| 2.1.1 | 120 | 4/22/2026 |
| 2.0.2 | 126 | 3/30/2026 |
| 2.0.1 | 122 | 3/29/2026 |
| 1.7.8 | 123 | 3/2/2026 |
| 1.7.7 | 139 | 1/31/2026 |
| 1.7.6 | 137 | 1/22/2026 |
| 1.7.5 | 151 | 1/10/2026 |
| 1.7.4 | 146 | 12/27/2025 |
| 1.7.3 | 217 | 12/22/2025 |
| 1.7.2 | 219 | 12/21/2025 |