Bug Report Checklist
Description
The generator does not take into account the fact that multiple security schemes are defined as 'OR'. In other words, the generated PHP Slim code will always try to perform all authentication methods simultaneously.
They are added in the middewares like this:
$this->addRoute(..
$middlewares
)->setName($operation['operationId']);
openapi-generator version
4.2.1
OpenAPI declaration file content or url
get:
...
security:
-
AdminToken: []
-
UserJWT: []
-
ExternalToken: []
Steps to reproduce
Create an OpenApi operation with multiple possible security schemes.
Related issues/PRs
Looks similar to #3844 for Python. Also #797 seems relavant.
Bug Report Checklist
Actual: adds all security schemes in middlewares that all get executed.
Expected: only one security scheme should match.
Description
The generator does not take into account the fact that multiple security schemes are defined as 'OR'. In other words, the generated PHP Slim code will always try to perform all authentication methods simultaneously.
They are added in the middewares like this:
openapi-generator version
4.2.1
OpenAPI declaration file content or url
Steps to reproduce
Create an OpenApi operation with multiple possible security schemes.
Related issues/PRs
Looks similar to #3844 for Python. Also #797 seems relavant.