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