From 2cc3e7865cc98c5df24cc51622ec705a710f0d7a Mon Sep 17 00:00:00 2001 From: Tiffany Marrel Date: Sat, 3 Jun 2023 05:44:48 +0200 Subject: [PATCH] [Go] fix security features listed in documentation (#15714) --- docs/generators/go.md | 2 +- .../org/openapitools/codegen/languages/GoClientCodegen.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/generators/go.md b/docs/generators/go.md index 83a1a63b09a..e8f9946fbcc 100644 --- a/docs/generators/go.md +++ b/docs/generators/go.md @@ -223,7 +223,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |OAuth2_Password|✗|OAS2,OAS3 |OAuth2_ClientCredentials|✗|OAS2,OAS3 |OAuth2_AuthorizationCode|✗|OAS2,OAS3 -|SignatureAuth|✗|OAS3 +|SignatureAuth|✓|OAS3 ### Wire Format Feature | Name | Supported | Defined By | diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java index ad4aa914a21..f3420dd7dbf 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java @@ -73,7 +73,8 @@ public class GoClientCodegen extends AbstractGoCodegen { SecurityFeature.BasicAuth, SecurityFeature.BearerToken, SecurityFeature.ApiKey, - SecurityFeature.OAuth2_Implicit + SecurityFeature.OAuth2_Implicit, + SecurityFeature.SignatureAuth )) .includeGlobalFeatures( GlobalFeature.ParameterizedServer