我正在尝试对以下定义的api进行基本身份验证。我已经使用x-wso2-disable-security:true禁用了默认安全性,但是它也禁用了对其定义的速率限制。不知道为什么会这样。
paths:
/public/rt/PING:
get:
description: ""
operationId: PING
x-wso2-throttling-tier: 6PerMin
x-wso2-disable-security: true
x-wso2-request-interceptor: setAuthHeaderInRequest
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/PING"
application/xml:
schema:
$ref: "#/components/schemas/PING"
security:
- basicAuthentication: []```
此问题已在最新版本的microgateway(1.1.0)中得到解决。
[1]-https://github.com/wso2/product-microgateway/releases/tag/v3.1.0