Anyware.Shared.Roles 2.0.0

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

Anyware.Shared.Roles

Shared .NET 8 library for IAM permission resolution, Redis/Memory caches, [RequiresPermission] / [RequiresPermissionOn], and Kafka-driven cache invalidation. Depends on Anyware.Shared.Auth for JWT identity and tenant header semantics.

Install

dotnet add package Anyware.Shared.Auth
dotnet add package Anyware.Shared.Roles

Quick start

using Anyware.Shared.Auth.Web;
using Anyware.Shared.Roles.Web;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAnywarePlatformAccess(builder.Configuration);

var app = builder.Build();
app.UseRouting();
app.UseAnywarePlatformAccess();
app.MapControllers();
app.Run();

Or register explicitly (same effect when both configs are bound):

builder.Services.AddAnywareAuth(builder.Configuration);
builder.Services.AddAnywareRoles(builder.Configuration);
// ...
app.UseAnywareAuth();
app.UseAnywareRoles();

Configuration: Anyware:Auth + Anyware:Roles. TenantHeader is defined only under Anyware:Auth and is reused when calling IAM.

Session endpoints (no permission checks)

IAM session management endpoints under GET/DELETE /api/v1/iam/me/sessions are self-service and do not require [RequiresPermission] / [RequiresPermissionOn]. They only require a valid JWT and matching tenant header (as enforced by IAM).

Documentation

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 214 5/7/2026
1.0.0 107 5/4/2026