qmetrics.net

jCasbin

Java access control library for ACL, RBAC, and ABAC

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

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

★ 28.4k⟳ 4 months agoISC

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

★ 24.3k⟳ 1 month agoMIT

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

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ monthsDesktop/CLI app

laravel-permission

Database-backed roles and permissions for Laravel applications

Laravel Permission stores roles and permissions in the database and wires them to users, guards, and Laravel’s authorization gate.

★ 13k⟳ 2 days agoMIT

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