Tagged articles
19 articles
Page 1 of 1
Open Source Tech Hub
Open Source Tech Hub
Nov 11, 2025 · Information Security

Understanding Authentication vs Authorization: From Basics to JWT & Casbin

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.

APIAuthenticationAuthorization
0 likes · 8 min read
Understanding Authentication vs Authorization: From Basics to JWT & Casbin
Open Source Tech Hub
Open Source Tech Hub
Aug 24, 2025 · Information Security

Mastering PHP-Casbin: A Lightweight, Cross‑Framework Permission Solution

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.

ABACAccess ControlCasbin
0 likes · 12 min read
Mastering PHP-Casbin: A Lightweight, Cross‑Framework Permission Solution
Open Source Tech Hub
Open Source Tech Hub
Aug 20, 2025 · Backend Development

Build a High‑Performance RBAC System in Webman with Casbin and ThinkORM

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.

Access ControlCasbinPHP
0 likes · 13 min read
Build a High‑Performance RBAC System in Webman with Casbin and ThinkORM
Open Source Tech Hub
Open Source Tech Hub
Aug 16, 2025 · Information Security

How to Set Up Multi‑Tenant RBAC in Casbin: Patterns, Config, and Sample Tests

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.

Access ControlCasbinMulti‑tenant
0 likes · 4 min read
How to Set Up Multi‑Tenant RBAC in Casbin: Patterns, Config, and Sample Tests
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2025 · Information Security

Mastering Fine-Grained Access Control in PHP with Casbin

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.

Access ControlAuthorizationCasbin
0 likes · 6 min read
Mastering Fine-Grained Access Control in PHP with Casbin
Open Source Tech Hub
Open Source Tech Hub
Nov 5, 2024 · Backend Development

Quickly Set Up CasbinStarterKits: Laravel, Vue 3 & Tailwind Access Control

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.

Access ControlCasbinLaravel
0 likes · 5 min read
Quickly Set Up CasbinStarterKits: Laravel, Vue 3 & Tailwind Access Control
Open Source Tech Hub
Open Source Tech Hub
Oct 1, 2024 · Backend Development

Build a Distributed Casbin Watcher with Workerman Redis in PHP

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.

Access ControlCasbinDistributed Systems
0 likes · 7 min read
Build a Distributed Casbin Watcher with Workerman Redis in PHP
Bilibili Tech
Bilibili Tech
Mar 10, 2023 · Information Security

Data Security Construction in Berserker Platform

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.

Access ControlAuthenticationAuthorization
0 likes · 15 min read
Data Security Construction in Berserker Platform
Open Source Tech Hub
Open Source Tech Hub
Nov 19, 2021 · Backend Development

How to Add Custom Super‑Admin Functions in Casbin

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.

CasbinPHPbackend
0 likes · 3 min read
How to Add Custom Super‑Admin Functions in Casbin
Ops Development Stories
Ops Development Stories
Apr 2, 2021 · Information Security

Mastering Casbin: Build Secure RBAC in Go with Gin and Gorm

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.

Access ControlCasbinGORM
0 likes · 13 min read
Mastering Casbin: Build Secure RBAC in Go with Gin and Gorm
Open Source Tech Hub
Open Source Tech Hub
Feb 27, 2021 · Information Security

How Casbin Simplifies Access Control with Flexible Models and Policies

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.

Access ControlAuthorizationCasbin
0 likes · 7 min read
How Casbin Simplifies Access Control with Flexible Models and Policies
Open Source Tech Hub
Open Source Tech Hub
Nov 12, 2020 · Information Security

Mastering HTTP API Authentication & RBAC with Casbin: A Hands‑On Guide

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.

Access ControlAuthenticationAuthorization
0 likes · 4 min read
Mastering HTTP API Authentication & RBAC with Casbin: A Hands‑On Guide
Open Source Tech Hub
Open Source Tech Hub
Nov 1, 2020 · Backend Development

Mastering RESTful APIs and Middleware with ThinkPHP5.1 & Casbin

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
Mastering RESTful APIs and Middleware with ThinkPHP5.1 & Casbin
Open Source Tech Hub
Open Source Tech Hub
Oct 15, 2020 · Information Security

Mastering Casbin: A Powerful Open‑Source Access Control Framework for PHP

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.

Access ControlAuthorizationBackend Security
0 likes · 4 min read
Mastering Casbin: A Powerful Open‑Source Access Control Framework for PHP