Ana içeriğe atla

Authorization in APISIX Using Casbin

· 5 dakika okuma
Rushikesh Tote
Member of Casbin
Yilia Lin
Apache APISIX Committer

Giriş

Apache APISIX can enforce Casbin authorization policies at the gateway with its built-in authz-casbin plugin. The plugin uses Lua Casbin and supports access control models such as ACL, RBAC, and ABAC.

This guide puts a small RBAC policy on the APISIX request path. You will verify allowed and denied requests, then update a shared policy through plugin metadata without changing the route.

The Casbin community originally proposed the integration in APISIX Issue #4674, and APISIX PR #4710 added the plugin.

August 2026 refresh

This guide was refreshed in August 2026. The examples were validated with Apache APISIX 3.17.0. The original 2021 author remains credited, and Yilia Lin is added for the 2026 refresh.

Reworking Our Documentation

· Bir dakika okuma
Yang Luo
Creator of Casbin

We have moved Casbin’s documentation from GitHub Wiki to the Docs section of this site, powered by Docusaurus. You get better Markdown rendering, full-text search, versioning, and translation.