Skip to content

openapi2kong: No openid-connect plugin configuration is generated when '--ignore-security-errors' option is specified #1829

Description

@bhollingworth

Using deck v1.54.0 on Linux amd64, the following command line:
deck file openapi2kong --generate-security --spec openapi.yaml
will generate openid-connect plugin configuration.

However, if the '--ignore-security-errors' option is added to the command line:
deck file openapi2kong --generate-security --ignore-security-errors --spec openapi.yaml
no openid-connect plugin configuration will be generated.

Here's the contents of an openapi.yaml file that reproduces the problem:

openapi: 3.0.4
info:
  title: example
  version: 1.2.0
servers:
  - url: https://example.com
paths:
  /oidc:
    get:
      security:
        - OpenIDConnect: []
      responses:
        '204':
          description: No content
components:
  securitySchemes:
    OpenIDConnect:
      type: openIdConnect
      openIdConnectUrl: https://example.com/.well-known/openid-configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions