Open
Description
Description
My API needs multiple authentication keys at once. I can achieve this using middleware, but I have to create a blank SecurityHandler. It would be cool if the SecurityHandler provided me with key combinations.
Currently, SecurityHandler only supports the "or" option from the example below.
Desired result:
For the second example, you need to generate one SecurityHandler method, not two.
For the third example - two methods, not 4
References
https://swagger.io/docs/specification/authentication/
scroll to "Using Multiple Authentication Types"
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. security uses the following logic
security: # A OR B
- A
- B
security: # A AND B
- A
B
security: # (A AND B) OR (C AND D)
- A
B
- C
D