diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache index 4e094dfccbe2..caa2d37bb624 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache @@ -162,6 +162,7 @@ public class ApiClient { return objectMapper; } + {{#isOAuth}} private RequestInterceptor buildOauthRequestInterceptor(OAuthFlow flow, String authorizationUrl, String tokenUrl, String scopes) { switch (flow) { case password: @@ -172,6 +173,7 @@ public class ApiClient { throw new RuntimeException("Oauth flow \"" + flow + "\" is not implemented"); } } + {{/isOAuth}} public ObjectMapper getObjectMapper(){ return objectMapper;