Forum Discussion

fsamwel's avatar
fsamwel
Occasional Contributor
5 years ago

API key security not imported from Swagger (OAS3) yaml

I've imported an open API specifications version 3.0 yaml file at creating a new project. This Swagger OAS definition contains security:

security:
- apiKeyBAG: []

 

and in the #/components/securitySchemes:

  securitySchemes:
    apiKeyBAG:
      type: apiKey
      name: X-Api-Key
      in: header

In ReadyApi SoapUI I don't find this header anywhere and haven't found a way to add this in the Auth Manager. This means I have to manually add this header to every operation in the API.

 

Is there something wrong with the way this was defined in the Swagger file? (I wouldn't think so, SwaggerHub does recognize the security)

Or is there another way to get and use the defined security (api key)?