Ross ROSS = Recommend OSS · open-source software intelligence for agents

apache/casbin-Casbin.NET

An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#) observed · 2026-08-28

github.com/apache/casbin-Casbin.NET · homepage · C# · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

95/100

  • Activity 97
  • Release rhythm 89
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 6
  • age_days: 2652
  • days_rel: 78
  • days_push: 18
  • n_releases_24m: 16

Full methodology

Adoption not part of the score

1330 stars · 128 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Casbin.NET is the .NET (C#) implementation of Apache Casbin, an open-source authorization library that enforces access control via models such as ACL, RBAC, and ABAC defined in PERM metamodel configuration files. Policies can be stored in memory, files, or databases through adapters, and the API is shared across Casbin implementations in other languages.

Use cases

  • enforce role-based access control in a C# web app
  • implement ABAC permission checks in .NET services
  • store authorization policies in SQL Server or PostgreSQL
  • manage user-role hierarchies with an RBAC API
  • switch access control models by editing a config file
  • add multi-tenant authorization with filtered policy loading

When to choose

  • you need flexible, model-driven authorization in a .NET/C# project
  • you want consistent authorization logic across polyglot services using Casbin
  • you need pluggable policy storage backends (SQL, ORM, files)

When to avoid

  • you only need simple hardcoded role checks with no policy flexibility
  • your stack is not .NET and you don't need cross-language consistency
  • you require features like batch API or filtered adapters not fully supported in C#

Facets

library · maturity stable

authorization auth middleware security backend developer-tools dotnet cross-platform rbac abac acl access-control casbin csharp permissions policy-enforcement

10 sources

Member repositories

RepositoryRoleHealth v2
apache/casbin-Casbin.NETmain95

For agents

markdown · JSON · MCP: product_card(name="apache/casbin-Casbin.NET")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem