Skip to content

Support for AND of security schemas #74

@macfanatic

Description

@macfanatic

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/

Screen Shot 2021-02-04 at 12 17 02 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions