cdimascio / express-openapi-validator

🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
MIT License
919 stars 211 forks source link

mutliple authentication handler #390

Open balazssoltesz opened 4 years ago

balazssoltesz commented 4 years ago

hello,

according to the openapi spec:

Some REST APIs support several authentication types. The security section lets you combine the security requirements using logical OR and AND to achieve the desired result.

im not be able to use two security schema with logical AND in express-openapi-validator. Its seems to be authenticated if the request passed to the first handler. Any idea?

balazssoltesz commented 4 years ago

sry i don't know github, and don't know what is the usual way to contribute, but u can find the implementation in my fork on github.