qmetrics.net

Casbin jCasbin

Java access control library for ACL, RBAC, and ABAC

Casbin jCasbin screenshot

jCasbin enforces authorization in Java applications using configurable models such as ACL, RBAC, and ABAC without handling authentication itself.

Overview

jCasbin is the Java implementation of Apache Casbin, an access control library that evaluates whether a subject may perform an action on a resource. It supports many policy models, including role-based and attribute-based schemes, through CONF files built on the PERM metamodel.

The enforcer loads a model definition and policy rules from files or databases via adapters. At runtime it checks requests in classic subject-object-action form or custom shapes you define, including allow and deny effects with deny-override and priority ordering where configured.

The library stores policies and role mappings, exposes management APIs for permissions at runtime, and supplies built-in matcher helpers such as keyMatch and regexMatch. It does not verify passwords or maintain user accounts; applications own authentication and user lists.

Matcher expressions are evaluated with jCasbin’s own expression engine. Optional Spring Boot starter integration is mentioned for quicker assembly in Spring applications.

Key features

  • ACL, RBAC, and ABAC models
  • CONF-based PERM models
  • File and database policy storage
  • Runtime policy management APIs
  • Role hierarchy management
  • Built-in matcher functions
  • Deny-override and priority rules
  • Spring Boot starter available

Use cases

  • API authorization in Java services
  • Multi-tenant RBAC policies
  • Fine-grained resource permissions
  • Centralized policy enforcement

Tags

Similar software

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

★ 19.1k⟳ 10 days agoApache-2.0

Node Jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

★ 18.2k⟳ 5 months agoMIT
Application SecurityDesktop/CLI app

OAuth2 Proxy

OAuth2 and OIDC reverse proxy authentication

OAuth2 Proxy sits before web apps as reverse proxy or middleware, sends users through OAuth2 or OIDC login, supports many identity providers, and can forward user details to upstream apps as headers

★ 15.4k⟳ 19 days agoMIT

SuperTokens

Open-source user login and session management

SuperTokens adds sign-up, sign-in, and session handling to applications through frontend SDKs, backend SDKs, and a core HTTP auth service.

★ 15.3k⟳ todayApache-2.0 · open core
Open Source Alternative to:Amazon CognitoAuth0+2

Casdoor

Self-hosted identity provider with SSO and agent MCP gateway

Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling

★ 15k⟳ 2 days agoApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+3

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

★ 7.1k⟳ 4 days agoMIT
Application SecurityDesktop/CLI app