This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-lua-apisix-authz.git
The following commit(s) were added to refs/heads/master by this push:
new e63f746 chore: update URLs and CI paths for apache org
e63f746 is described below
commit e63f7465610d1cdd602be0db4ed80a9e2b226d30
Author: Yang Luo <[email protected]>
AuthorDate: Fri Aug 7 00:15:02 2026 +0800
chore: update URLs and CI paths for apache org
---
.github/workflows/test.yml | 6 +++---
README.md | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2fdd768..8614e1a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -97,7 +97,7 @@ jobs:
- apisix-authz
EOT
sudo apt install make gcc libpcre3 libpcre3-dev
- sudo luarocks install
https://raw.githubusercontent.com/casbin/lua-casbin/master/casbin-1.16.1-1.rockspec
+ sudo luarocks install casbin
- name: Start the server
run: |
cd apisix-2.7
@@ -107,8 +107,8 @@ jobs:
"uri": "/*",
"plugins": {
"apisix-authz": {
- "model_path":
"/home/runner/work/apisix-authz/apisix-authz/examples/authz_model.conf",
- "policy_path":
"/home/runner/work/apisix-authz/apisix-authz/examples/authz_policy.csv",
+ "model_path": "${{ github.workspace
}}/examples/authz_model.conf",
+ "policy_path": "${{ github.workspace
}}/examples/authz_policy.csv",
"username" : "user"
}
},
diff --git a/README.md b/README.md
index 8cac3ac..7f426a5 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
[](https://github.com/apache/casbin-lua-casbin)
[](https://sourcegraph.com/github.com/apache/casbin-lua-apisix-authz?badge)
-apisix-authz is an authorization plugin for APISIX based on
[lua-casbin](https://github.com/casbin/lua-casbin/).
+apisix-authz is an authorization plugin for APISIX based on
[lua-casbin](https://github.com/apache/casbin-lua-casbin).
## Installation
@@ -23,15 +23,15 @@ Ensure you have Casbin's system dependencies installed by:
sudo apt install gcc libpcre3 libpcre3-dev
```
-Install Casbin's latest release (currently v1.16.1) from LuaRocks by:
+Install Casbin's latest release from LuaRocks by:
```
-sudo luarocks install
https://raw.githubusercontent.com/casbin/lua-casbin/master/casbin-1.16.1-1.rockspec
+sudo luarocks install casbin
```
Then clone this repo and copy the `apisix-authz.lua` file to your plugin
directory (modify the plugin according to your situation if you wish to):
```
-git clone https://github.com/casbin-lua/apisix-authz
-cp apisix-authz/apisix-authz.lua path_to_apisix/plugins/apisix-authz.lua
+git clone https://github.com/apache/casbin-lua-apisix-authz
+cp casbin-lua-apisix-authz/apisix-authz.lua
path_to_apisix/plugins/apisix-authz.lua
```
And finally append the plugins section of your `conf/config.yaml` with
`apisix-authz` to something like this (more on this
[here](https://github.com/apache/apisix/blob/master/docs/en/latest/plugin-develop.md#:~:text=To%20enable%20your%20plugin%2C%20copy%20this%20plugin%20list%20into%20conf/config.yaml%2C%20and%20add%20your%20plugin%20name.%20For%20instance%3A)):
@@ -166,7 +166,7 @@ For how to write authorization policy and other details,
please refer to the [Ca
## Example
-An example of policy file and model file is given in the
[examples](https://github.com/casbin-lua/apisix-authz/tree/master/examples)
directory of this repo.
+An example of policy file and model file is given in the
[examples](https://github.com/apache/casbin-lua-apisix-authz/tree/master/examples)
directory of this repo.
The example model file is:
```
@@ -239,7 +239,7 @@ This will result in a 403 error, since as per the policy
configuration any non-a
## Getting Help
- [Casbin](https://casbin.org/)
-- [Lua Casbin](https://github.com/casbin/lua-casbin/)
+- [Lua Casbin](https://github.com/apache/casbin-lua-casbin)
## License
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]