Raycynix.Extensions.Security 2.2.0

dotnet add package Raycynix.Extensions.Security --version 2.2.0
                    
NuGet\Install-Package Raycynix.Extensions.Security -Version 2.2.0
                    
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="Raycynix.Extensions.Security" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Raycynix.Extensions.Security" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Raycynix.Extensions.Security" />
                    
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 Raycynix.Extensions.Security --version 2.2.0
                    
#r "nuget: Raycynix.Extensions.Security, 2.2.0"
                    
#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 Raycynix.Extensions.Security@2.2.0
                    
#: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=Raycynix.Extensions.Security&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Raycynix.Extensions.Security&version=2.2.0
                    
Install as a Cake Tool

Raycynix.Extensions.Security

Raycynix.Extensions.Security contains the core, host-agnostic security implementation for Raycynix applications.

What it contains

  • SecurityContext
  • AddRaycynixSecurity(...)
  • SecurityConfiguration
  • JwtConfiguration
  • DI registration for ISecurityContext

What it does not contain

  • ASP.NET Core authentication handlers
  • HTTP request mapping
  • JWT validation middleware
  • authorization policies
  • secret storage and resolution

Usage

builder.Services.AddRaycynixSecurity(builder.Configuration, options =>
{
    options.Jwt.Authority = "https://auth.raycynix.com";
    options.Jwt.Issuer = "raycynix-auth";
    options.Jwt.Audience = "raycynix-services";
});
{
  "SecurityConfiguration": {
    "Jwt": {
      "Authority": "https://auth.raycynix.com",
      "Issuer": "raycynix-auth",
      "Audience": "raycynix-services",
      "AccessTokenLifetime": "00:15:00",
      "RefreshTokenLifetime": "14.00:00:00",
      "ClockSkew": "00:01:00",
      "RequireHttpsMetadata": true
    }
  }
}

The package binds settings from the SecurityConfiguration section and allows optional overrides in code.

For ASP.NET Core request binding and web-specific integration, use Raycynix.Extensions.Security.AspNetCore.

For secret resolution, use Raycynix.Extensions.Secrets.

Logging

This package contains host-agnostic registration, configuration, and the default security context model. Runtime authentication and authorization diagnostics belong to host integration packages, so this package does not add a logging dependency.

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 (1)

Showing the top 1 NuGet packages that depend on Raycynix.Extensions.Security:

Package Downloads
Raycynix.Extensions.Security.AspNetCore

ASP.NET Core JWT authentication, dynamic authorization policies, shared authorization-attribute integration, and request security context wiring for Raycynix applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Starts unified versioning for Raycynix packages from this release.