0

您好我正在尝试在 wso2 拦截器中进行基本身份验证,而无需针对 wso2.gw.conf 中定义的用户进行验证。我定义的拦截器正在验证基本身份验证标头。他们也是一种方法来禁用 WSO2 对 wso2.gw.conf 中定义的用户进行基本身份验证验证。

还有为什么我的基本身份验证标头的密码被散列密码替换,如 wso2.gw.conf 中所定义

    ["b7a.users"]
    ["b7a.users.xxx"]
    password="1F44F70E2JLKF4E469D32D5742D86A590E10FE04x"

我的开放 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
4

0 回答 0