Rag.NET.Security.AspNetCore
1.8.3
See the version list below for details.
dotnet add package Rag.NET.Security.AspNetCore --version 1.8.3
NuGet\Install-Package Rag.NET.Security.AspNetCore -Version 1.8.3
<PackageReference Include="Rag.NET.Security.AspNetCore" Version="1.8.3" />
<PackageVersion Include="Rag.NET.Security.AspNetCore" Version="1.8.3" />
<PackageReference Include="Rag.NET.Security.AspNetCore" />
paket add Rag.NET.Security.AspNetCore --version 1.8.3
#r "nuget: Rag.NET.Security.AspNetCore, 1.8.3"
#:package Rag.NET.Security.AspNetCore@1.8.3
#addin nuget:?package=Rag.NET.Security.AspNetCore&version=1.8.3
#tool nuget:?package=Rag.NET.Security.AspNetCore&version=1.8.3
Rag.NET.Security.AspNetCore
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 74 packages; install only what you call. Documentation · Choosing packages
ASP.NET Core binding for Rag.NET's RBAC: resolves the caller's roles from the current
request's ClaimsPrincipal, so UseRbac() chunk filtering follows your existing
authentication without a custom ICallerContext.
Install
dotnet add package Rag.NET.Security.AspNetCore
Setup
using Rag.NET.DependencyInjection;
using Rag.NET.Security;
using Rag.NET.Security.AspNetCore;
services.AddRagNet(rag => rag.UseRbac());
services.AddRagNetAspNetCoreSecurity(); // ICallerContext ← ClaimsPrincipal role claims
Example
Documents declare who may retrieve them via the allowed_roles tag at ingestion; from
then on, retrieval inside an authenticated request only returns chunks the caller's role
claims allow:
using Rag.NET.Models;
await pipeline.IngestAsync(stream, new DocumentMetadata
{
DocumentId = new DocumentId("hr-handbook-2024"),
FileName = "hr-handbook-2024.pdf",
Tags = new Dictionary<string, MetadataValue>
{
["allowed_roles"] = "hr,finance",
},
});
Full guide
| Product | Versions 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. net11.0 is compatible. |
-
net10.0
- Rag.NET.Security (>= 1.8.3)
-
net11.0
- Rag.NET.Security (>= 1.8.3)
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 |
|---|---|---|
| 1.8.4 | 0 | 11/15/2026 |
| 1.8.3 | 0 | 11/15/2026 |
| 1.8.2 | 41 | 11/14/2026 |
| 1.8.1 | 48 | 11/14/2026 |
| 1.8.0 | 49 | 11/14/2026 |
| 1.6.0 | 80 | 11/10/2026 |
| 1.5.0 | 84 | 11/9/2026 |
| 1.4.1 | 84 | 11/9/2026 |
| 1.4.0 | 90 | 11/8/2026 |
| 1.3.10 | 83 | 11/8/2026 |
| 1.3.9 | 86 | 11/7/2026 |
| 1.3.8 | 90 | 11/6/2026 |
| 1.3.7 | 92 | 11/2/2026 |
| 1.3.6 | 97 | 11/2/2026 |
| 1.3.5 | 95 | 11/1/2026 |
| 1.3.4 | 104 | 10/30/2026 |
| 1.3.2 | 105 | 10/26/2026 |
| 1.3.1 | 104 | 10/25/2026 |
| 1.3.0 | 108 | 10/22/2026 |
| 1.2.0 | 103 | 10/22/2026 |