-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Currently I do not see a way to denote that an endpoint requires multiple security schemas via AND. Is there support for this?
# defined in our ApplicationController
components do
api_key :field_1, field: 'X-Field-1', in: 'header'
api_key :field_2, field: 'X-Field-2', in: 'header'
api_key :field_3, field: 'X-Field-3', in: 'header'
end
# in initializer
global_security_require :field_1
global_security_require :field_2
global_security_require :field_3
This definition results in an array of security components, and they are set as OR.
In a YML specification, I'd write this as:
security:
- field_1
field_2
field_3
Documentation: https://swagger.io/docs/specification/authentication/
Metadata
Metadata
Assignees
Labels
No labels