您好,我尝试在wso2拦截器中进行基本身份验证,而未针对wso2.gw.conf中定义的用户进行验证。 我定义的拦截器正在验证基本身份验证标头。因此,它们是一种通过WSO2对wso2.gw.conf中定义的用户禁用基本身份验证的方法。
为什么我的基本Authentication标头的密码却被替换为wso2.gw.conf中定义的哈希密码
["b7a.users"]
["b7a.users.xxx"]
password="1F44F70E2JLKF4E469D32D5742D86A590E10FE04x"
我的Open Api规范:
paths:
/rt/PING:
get:
description: ""
operationId: PING
x-wso2-throttling-tier: 6PerMin
x-wso2-request-interceptor: setAuthHeaderInRequest
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/PING"
application/xml:
schema:
$ref: "#/components/schemcomponents:
components:
securitySchemes:
basicAuthentication:
type: http
scheme: basic
schemas:
PING:
type: object
properties:
PONG:
type: string
xml:
name: PING