diff --git a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache index 14604352cc3..f294be583fe 100644 --- a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache @@ -229,11 +229,11 @@ conf = {{{packageName}}}.Configuration( """ {{/hasOAuthMethods}} {{^hasOAuthMethods}} -{{#hasBearerMethods}} +{{#hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """ -{{/hasBearerMethods}} +{{/hasHttpBearerMethods}} {{/hasOAuthMethods}} self.logger = {} """Logging Settings diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache index 77b44197b2f..3849fa4e330 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache @@ -199,11 +199,11 @@ conf = {{{packageName}}}.Configuration( """ {{/hasOAuthMethods}} {{^hasOAuthMethods}} -{{#hasBearerMethods}} +{{#hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """ -{{/hasBearerMethods}} +{{/hasHttpBearerMethods}} {{/hasOAuthMethods}} self.logger = {} """Logging Settings diff --git a/modules/openapi-generator/src/main/resources/python/configuration.handlebars b/modules/openapi-generator/src/main/resources/python/configuration.handlebars index c66365cefdb..d6a5898e669 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.handlebars +++ b/modules/openapi-generator/src/main/resources/python/configuration.handlebars @@ -182,7 +182,7 @@ conf = {{{packageName}}}.Configuration( server_variables=None, server_operation_index=None, server_operation_variables=None, -{{#or hasOAuthMethods hasBearerMethods}} +{{#or hasOAuthMethods hasHttpBearerMethods}} access_token=None, {{/or}} ): @@ -235,7 +235,7 @@ conf = {{{packageName}}}.Configuration( """The HTTP signing configuration """ {{/if}} -{{#or hasOAuthMethods hasBearerMethods}} +{{#or hasOAuthMethods hasHttpBearerMethods}} self.access_token = None """access token for OAuth/Bearer """