Winglet.Authentication 0.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Winglet.Authentication --version 0.1.2
                    
NuGet\Install-Package Winglet.Authentication -Version 0.1.2
                    
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="Winglet.Authentication" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Winglet.Authentication" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Winglet.Authentication" />
                    
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 Winglet.Authentication --version 0.1.2
                    
#r "nuget: Winglet.Authentication, 0.1.2"
                    
#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 Winglet.Authentication@0.1.2
                    
#: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=Winglet.Authentication&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Winglet.Authentication&version=0.1.2
                    
Install as a Cake Tool

Winglet.Authentication

Winglet.Authentication is the shared integration boundary between native ASP.NET Core JWT Bearer validation and the immutable Winglet request context. ASP.NET Core / IdentityModel owns bearer extraction, signature, issuer, lifetime, key and clock-skew validation; this package adds the fixed canonical JWT v1 profile checks and establishes trusted TenantContext.

The application-facing context keeps Identity, Session, Service caller, Tenant, Authentication, actor and authorization snapshots separate. Global-context tokens have no tenant. Tenant-context tokens contain exactly one tenant and only that tenant's broad authorization snapshot. Service-only and on-behalf-of tokens preserve caller/actor distinction.

Register the package with AddWingletAuthentication(configuration), run UseAuthentication() first, then UseWingletAuthenticationContext(). Add AddWingletAuthorization() when using the supplied privilege, assurance, freshness or tenant-context policy handlers. The package never trusts tenant values from request body, query or headers and never exposes raw claims as the primary API.

Use RequireWingletPrivilege("event.manage"), RequireWingletAuthenticationAssurance(WingletAuthenticationAssurance.Strong), RequireWingletAuthenticationFreshness(...) and RequireWingletTenantContext() in normal ASP.NET Core policies. Canonical privilege matching is centralized; roles and groups are not the application authorization API.

Canonical wire details are defined by docs/contracts/authentication/jwt-v1.md. The canonical profile requires winglet+jwt, RS256, an opaque kid, exact configured issuer, exp, iat, 60-second clock skew, canonical claim types and explicit global/tenant context. No per-request Identity/Auth lookup is performed.

Outbound IWingletClientTokenProvider integration is implemented by WingletAuthenticationTokenProvider. It validates operation-declared global/tenant and service-only/on-behalf-of semantics against the trusted current context, then delegates the replaceable remote operation to IWingletAuthenticationTokenAcquirer. No token endpoint, PHP implementation detail, JWT cryptography or credentials are embedded in this package.

The current PHP Identity token shape is a compatibility concern for the configured JwtBearer validation and token acquirer: legacy claim names can be mapped through the contained adapter, but the package does not silently treat a custom HMAC token format as a standard JWT deployment. The same semantic context and acquirer boundary can be used by a future C# Identity/Auth implementation.

Product 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. 
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 Winglet.Authentication:

Package Downloads
Winglet.Authentication.Testing

Test-only ephemeral canonical Winglet JWT v1 issuer and ASP.NET Core host integration.

Winglet.Tenancy.Lifecycle.Server

Thin ASP.NET Core integration for the Winglet.NET tenant lifecycle protocol.

Winglet.ResourceAuthorization.Client

Typed Winglet.NET resource authorization client with bounded local decision cache.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.4 98 9/11/2026
0.1.3 80 9/11/2026
0.1.2 95 9/10/2026
0.1.1 185 9/5/2026
0.1.0 107 9/5/2026