Cirreum.Runtime.AuthorizationProvider 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Cirreum.Runtime.AuthorizationProvider --version 1.0.2
                    
NuGet\Install-Package Cirreum.Runtime.AuthorizationProvider -Version 1.0.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="Cirreum.Runtime.AuthorizationProvider" Version="1.0.2" />
                    
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.2" />
                    
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.2
                    
#r "nuget: Cirreum.Runtime.AuthorizationProvider, 1.0.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 Cirreum.Runtime.AuthorizationProvider@1.0.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=Cirreum.Runtime.AuthorizationProvider&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Cirreum.Runtime.AuthorizationProvider&version=1.0.2
                    
Install as a Cake Tool

Cirreum.Runtime.AuthorizationProvider

NuGet Version NuGet Downloads GitHub Release License .NET

Authorization provider extensions for the Cirreum Runtime Server

Overview

Cirreum.Runtime.AuthorizationProvider provides extension methods for registering authorization providers with ASP.NET Core applications in the Cirreum Runtime Server ecosystem. It streamlines the configuration and registration of authorization providers through a type-safe, configuration-driven approach.

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
    }
}

Documentation

  • Authorization Design - Comprehensive guide to OAuth2 scopes, app roles, and Microsoft Entra ID integration patterns

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.20 192 5/7/2026 1.0.20 is deprecated because it is no longer maintained.
1.0.19 152 5/1/2026 1.0.19 is deprecated because it is no longer maintained.
1.0.18 150 4/28/2026 1.0.18 is deprecated because it is no longer maintained.
1.0.17 159 4/26/2026 1.0.17 is deprecated because it is no longer maintained.
1.0.16 171 4/15/2026 1.0.16 is deprecated because it is no longer maintained.
1.0.15 221 3/17/2026 1.0.15 is deprecated because it is no longer maintained.
1.0.14 192 3/13/2026 1.0.14 is deprecated because it is no longer maintained.
1.0.12 170 3/10/2026 1.0.12 is deprecated because it is no longer maintained.
1.0.11 152 3/9/2026 1.0.11 is deprecated because it is no longer maintained.
1.0.10 146 3/6/2026 1.0.10 is deprecated because it is no longer maintained.
1.0.9 221 1/21/2026 1.0.9 is deprecated because it is no longer maintained.
1.0.8 307 12/20/2025 1.0.8 is deprecated because it is no longer maintained.
1.0.7 175 12/20/2025 1.0.7 is deprecated because it is no longer maintained.
1.0.6 230 12/20/2025 1.0.6 is deprecated because it is no longer maintained.
1.0.5 280 12/19/2025 1.0.5 is deprecated because it is no longer maintained.
1.0.4 322 12/19/2025 1.0.4 is deprecated because it is no longer maintained.
1.0.3 344 12/16/2025 1.0.3 is deprecated because it is no longer maintained.
1.0.2 242 11/29/2025 1.0.2 is deprecated because it is no longer maintained.
1.0.1 276 11/24/2025 1.0.1 is deprecated because it is no longer maintained.
1.0.0 348 11/21/2025 1.0.0 is deprecated because it is no longer maintained.