Tagged articles
Casbin
19 articles · Page 1 of 1
This article explains the fundamental differences between authentication and authorization, outlines various authentication factors, details the JWT signing process, and introduces Casbin as a powerful open‑source authorization framework, helping developers secure API access effectively.
APIAuthenticationCasbin
0 likes · 8 min read

PHP‑Casbin is an open‑source, lightweight permission framework for PHP that separates policy from model, supports multiple access‑control models (ACL, RBAC, ABAC, etc.), integrates with popular frameworks via Composer, offers dynamic policy management, caching, and multi‑tenant capabilities, solving common permission pitfalls in SaaS, e‑commerce, and government systems.
ABACCasbinPHP
0 likes · 12 min read

This guide walks PHP developers through designing a relational database schema and implementing a role‑based access control (RBAC) system in the Webman framework by integrating Casbin for policy enforcement and ThinkORM for elegant ORM handling, complete with configuration, model definitions, and middleware.
BackendCasbinPHP
0 likes · 13 min read

This guide explains how Casbin supports global and domain‑specific RBAC roles, compares three multi‑tenant data isolation patterns, shows the configuration of a shared‑table approach with a domain‑aware model file, defines tenant policies and user groups, and provides PHP test code with expected outcomes.
CasbinPHPRBAC
0 likes · 4 min read

This article explains how PHP‑Casbin implements the PERM model to provide flexible, lightweight, and multi‑model access control for PHP applications, covering its architecture, supported ACL/RBAC/ABAC models, configuration syntax, cross‑language ecosystem, storage options, framework integrations, and practical use cases.
BackendCasbinPHP
0 likes · 6 min read

Think-Authz is a PHP‑Casbin‑based authorization extension for ThinkPHP that supports ACL, RBAC, and ABAC models; the guide covers Composer installation, service registration, publishing configuration and migration files, using the Enforcer API, middleware integration, and custom cache handling.
BackendCasbinPHP
0 likes · 5 min read

This guide walks you through installing and running CasbinStarterKits—a PHP‑Casbin starter kit built on Laravel‑Authz with a Vue 3 and Tailwind CSS front‑end—covering prerequisites, repository cloning, dependency installation, database migration, and accessing the demo with default credentials.
CasbinLaravelPHP
0 likes · 5 min read

This guide explains how to add the Casbin access‑control library to a Webman PHP project, covering installation, dependency‑injection setup, database schema creation, Redis configuration, quick‑start code examples, and custom logging with PSR‑3 support.
BackendCasbinPHP
0 likes · 7 min read

This guide explains how to implement a Casbin Watcher for distributed policy synchronization using Workerman's asynchronous Redis client in PHP, covering the underlying principles, required interfaces, code implementation, and a complete usage example with publish‑subscribe messaging.
CasbinDistributed SystemsPHP
0 likes · 7 min read

This guide introduces Casbin, an open‑source access‑control framework, explains its supported languages, core features, installation steps, configuration details, and provides practical code examples for integrating Casbin with PHP Webman projects.
CasbinPHPSecurity
0 likes · 7 min read

The article outlines Berserker’s comprehensive data‑security framework—built on the CIA triad and 5A methodology—that unifies authentication, authorization, access control, asset protection, and auditing across Hive, Kafka, ClickHouse and ETL tasks, describes the migration from version 1.0 to 2.0 with a redesigned permission system, workspaces, Casbin performance tweaks, and previews future fine‑grained, lifecycle‑wide security enhancements.
AuthenticationBerserker platformCasbin
0 likes · 15 min read

This guide explains step‑by‑step how to create, register, and use a custom function in Casbin to support multiple super‑admin users, including code examples for PHP anonymous functions and Enforcer registration.
BackendCasbinPHP
0 likes · 3 min read

This guide shows how to install PHP‑Casbin, configure an RBAC model, initialize an enforcer with a MySQL adapter, add roles and permissions, and verify access decisions for different users using concrete code examples.
CasbinPHPRBAC
0 likes · 4 min read

This article explains what Casbin is, how its PERM model works, and provides a step‑by‑step guide to integrate Casbin’s RBAC authorization into a Go project using Gin, Gorm, and a MySQL adapter, including model configuration, policy storage, middleware enforcement, and verification.
CasbinGORMGin
0 likes · 13 min read

Casbin is an open‑source access‑control framework that supports multiple programming languages, offers customizable request formats, role inheritance, super‑user shortcuts, and built‑in matchers, while delegating authentication and user management to other components.
CasbinPERM ModelPHP
0 likes · 7 min read

This tutorial explains the fundamentals of HTTP API authentication versus authorization, introduces Casbin's model and policy syntax for role‑based access control, and provides step‑by‑step PHP code examples to add permissions, assign roles, and enforce RBAC checks.
AuthenticationCasbinPHP
0 likes · 4 min read

This guide explains RESTful concepts, compares Casbin keyMatch functions, demonstrates Postman testing of CRUD endpoints, and shows how to integrate authentication middleware in ThinkPHP5.1, providing complete code snippets and configuration details for secure API development.
APICasbinPostman
0 likes · 4 min read

This guide introduces Casbin, an efficient open‑source authorization library, outlines its supported languages, key features, what it does not handle, core concepts, installation via Composer, and provides a complete PHP example with model and policy files to enforce access control.
CasbinPHPRBAC
0 likes · 4 min read

This article explains the fundamental differences between authentication and authorization, outlines common methods such as single‑factor, two‑factor, and multi‑factor authentication, introduces JWT token generation, and showcases Casbin as a flexible access‑control framework for securing APIs.
CasbinJWTMFA
0 likes · 9 min read
