You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/02 03:12:27 UTC
[GitHub] [apisix] liangliang4ward opened a new issue #6787: bug: some auth plugin source code need add type `auth`
liangliang4ward opened a new issue #6787:
URL: https://github.com/apache/apisix/issues/6787
### Current Behavior
I thought when create consumer need a `auth` pulgin
```lua
local count_auth_plugin = 0
for name, conf in pairs(conf.plugins) do
local plugin_obj = plugin.get(name)
if plugin_obj.type == 'auth' then
count_auth_plugin = count_auth_plugin + 1
end
end
if count_auth_plugin == 0 then
return nil, {error_msg = "require one auth plugin"}
end
```
now some auth plugin not tag `auth`
like `authz-casbin`
```lua
//authz-casbib.lua
local _M = {
version = 0.1,
priority = 2560,
name = plugin_name,
schema = schema,
metadata_schema = metadata_schema
}
```
### Expected Behavior
add type=`auth`
let me check auth plugin and fixed them
### Error Logs
_No response_
### Steps to Reproduce
add consumer
### Environment
- APISIX version (run `apisix version`): 2.13.0
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward commented on issue #6787: bug: some auth plugin source code need add type `auth`
Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6787:
URL: https://github.com/apache/apisix/issues/6787#issuecomment-1086531523
let me check auth plugin and fixed them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liangliang4ward closed issue #6787: bug: some auth plugin source code need add type `auth`
Posted by GitBox <gi...@apache.org>.
liangliang4ward closed issue #6787:
URL: https://github.com/apache/apisix/issues/6787
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org