openapi v2 does not support multiple oauth flows

Created on 11 October 2024, about 1 month ago

Problem/Motivation

The openapi v2 specification does not support multiple oauth2 flows. Instead it only allows for a single flow.

However the openapi v3 flows has been added to the module.
This means that if you try to generate API libraries based on the openapi.json file, it will fail with tools like openapitools/openapi-generator-cli .

Proposed resolution

I propose a solution that goes back to generating a single oauth2 flow.
Openapi v2 Security oauth2 Scheme Object supports 4 different flows (implicit, password, application, accessCode). I suggest the default oauth2 flow should be set to accessCode as password and implicit is not considered best practice.

Feature request
Status

Active

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024