====test==== Adding a header of "Authorization: Basic <>" where TOKEN is base64 encoded <>:<> combination for a request to an endpoint, which security depends on global security definitions, results in granted access. ====spec==== openapi: 3.0.2 paths: /todos: get: responses: 200: description: OK content: application/json: example: test components: securitySchemes: BasicAuth: type: http scheme: basic ApiKeyAuth: type: apiKey in: header name: X-API-Key security: - BasicAuth: [] - ApiKeyAuth: [] ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos -H "Authorization: Basic dGVzdDp0ZXN0" ====expect==== HTTP/1.1 200 OK "test"