wso2 micro-gateway basic auth using interceptor

86 views Asked by At

Hi am trying to do basic authentication in wso2 interceptor without it being validated against user defined in wso2.gw.conf. My defined interceptor is validating basic auth header. so is their a way to disable basic auth validation by WSO2 against the user defined in wso2.gw.conf.

Also why does my basic Authentication header's password get replaced with hashed password, as defined in wso2.gw.conf

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

My Open Api Spec :

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
0

There are 0 answers