File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
232
232
### Security Feature
233
233
| Name | Supported | Defined By |
234
234
| ---- | --------- | ---------- |
235
- |BasicAuth|✗ |OAS2,OAS3
236
- |ApiKey|✗ |OAS2,OAS3
235
+ |BasicAuth|✓ |OAS2,OAS3
236
+ |ApiKey|✓ |OAS2,OAS3
237
237
|OpenIDConnect|✗|OAS3
238
- |BearerToken|✗ |OAS3
238
+ |BearerToken|✓ |OAS3
239
239
|OAuth2_Implicit|✗|OAS2,OAS3
240
240
|OAuth2_Password|✗|OAS2,OAS3
241
241
|OAuth2_ClientCredentials|✗|OAS2,OAS3
Original file line number Diff line number Diff line change 23
23
import org .openapitools .codegen .SupportingFile ;
24
24
import org .openapitools .codegen .meta .features .DocumentationFeature ;
25
25
import org .openapitools .codegen .meta .features .GlobalFeature ;
26
+ import org .openapitools .codegen .meta .features .SecurityFeature ;
26
27
27
28
import java .io .File ;
28
29
@@ -42,6 +43,9 @@ public CppQt5ClientCodegen() {
42
43
.includeDocumentationFeatures (DocumentationFeature .Readme )
43
44
.includeGlobalFeatures (GlobalFeature .ParameterizedServer )
44
45
.includeGlobalFeatures (GlobalFeature .MultiServer )
46
+ .includeSecurityFeatures (SecurityFeature .BasicAuth )
47
+ .includeSecurityFeatures (SecurityFeature .ApiKey )
48
+ .includeSecurityFeatures (SecurityFeature .BearerToken )
45
49
);
46
50
47
51
// set the output folder here
You can’t perform that action at this time.
0 commit comments