gzlboy opened a new issue, #9761:
URL: https://github.com/apache/apisix/issues/9761
### Description
使用consumer-restriction+basic-auth插件,consumer-restriction
配置type为consumer_name时接口返回符合预期,但当把consumer-restriction的type改成consumer_group_id后(设置了blacklist),不是黑名单内的consumer访问api,就会返回:
{"message":"Missing authentication or identity verification."}
如果使用黑名单内的consumer登录,返回是正常的:
{"message":"The consumer_group_id is forbidden."}
请教是什么原因呀?
`{
"plugins": {
"consumer-restriction": {
"type": "consumer_group_id",
"blacklist": [
"web1"
]
}
}
}`
apisix版本:3.3.0
### Environment
- APISIX version (run `apisix version`):
- 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]