Cirreum.Runtime.AuthorizationProvider 1.0.9

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

Cirreum.Runtime.AuthorizationProvider

NuGet Version NuGet Downloads GitHub Release License .NET

Base registration infrastructure for Cirreum authorization providers

Overview

Cirreum.Runtime.AuthorizationProvider provides the extension methods for registering authorization providers with ASP.NET Core applications. This is the runtime layer that defines the provider registration pattern and typically not referenced directly.

Note: For the complete authorization system with all provider implementations (Entra ID, API Key, Signed Request, External/BYOID), see Cirreum.Runtime.Authorization. Most applications should reference that package instead of this one directly.

Features

  • Type-safe provider registration with generic constraints
  • Configuration-driven setup using hierarchical configuration sections
  • Multiple provider instances support per registrar type
  • Duplicate registration protection with automatic detection
  • Structured logging with deferred execution for performance
  • Seamless ASP.NET Core integration through IHostApplicationBuilder extensions

Installation

dotnet add package Cirreum.Runtime.AuthorizationProvider

Usage

Basic Registration

using Microsoft.Extensions.Hosting;

var builder = Host.CreateApplicationBuilder(args);
var authBuilder = builder.Services.AddAuthentication();

// Register your authorization provider
builder.RegisterAuthorizationProvider<MyAuthRegistrar, MyAuthSettings, MyInstanceSettings>(authBuilder);

var app = builder.Build();

Configuration Structure

Configure your authorization providers in appsettings.json:

{
  "Cirreum": {
    "Authorization": {
      "Providers": {
        "MyProvider": {
          "Instances": [
            {
              "Name": "Primary",
              "Endpoint": "https://auth.example.com",
              "ClientId": "your-client-id"
            }
          ]
        }
      }
    }
  }
}

Custom Authorization Provider

Implement your authorization provider by inheriting from the base classes:

public class MyAuthRegistrar : AuthorizationProviderRegistrar<MyAuthSettings, MyInstanceSettings>
{
    public override ProviderType ProviderType => ProviderType.Authorization;
    public override string ProviderName => "MyProvider";
    
    public override void Register(
        IServiceCollection services, 
        MyAuthSettings settings, 
        IConfigurationSection section,
        AuthenticationBuilder authBuilder)
    {
        // Your registration logic here
    }
}

Contribution Guidelines

  1. Be conservative with new abstractions
    The API surface must remain stable and meaningful.

  2. Limit dependency expansion
    Only add foundational, version-stable dependencies.

  3. Favor additive, non-breaking changes
    Breaking changes ripple through the entire ecosystem.

  4. Include thorough unit tests
    All primitives and patterns should be independently testable.

  5. Document architectural decisions
    Context and reasoning should be clear for future maintainers.

  6. Follow .NET conventions
    Use established patterns from Microsoft.Extensions.* libraries.

Versioning

Cirreum.Runtime.AuthorizationProvider follows Semantic Versioning:

  • Major - Breaking API changes
  • Minor - New features, backward compatible
  • Patch - Bug fixes, backward compatible

Given its foundational role, major version bumps are rare and carefully considered.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Cirreum Foundation Framework
Layered simplicity for modern .NET

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 Cirreum.Runtime.AuthorizationProvider:

Package Downloads
Cirreum.Runtime.Authorization

The Runtime Authorization configuration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.9 156 1/21/2026
1.0.8 246 12/20/2025
1.0.7 118 12/20/2025
1.0.6 177 12/20/2025
1.0.5 223 12/19/2025
1.0.4 262 12/19/2025
1.0.3 283 12/16/2025
1.0.2 181 11/29/2025
1.0.1 218 11/24/2025
1.0.0 294 11/21/2025