diff --git a/modules/swagger-codegen/src/main/resources/python/configuration.mustache b/modules/swagger-codegen/src/main/resources/python/configuration.mustache index ad21e4c8cf9..bab1d09d761 100644 --- a/modules/swagger-codegen/src/main/resources/python/configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/python/configuration.mustache @@ -71,10 +71,9 @@ class Configuration(object): self.username = "" # Password for HTTP basic authentication self.password = "" - {{#authMethods}}{{#isOAuth}} - # token for OAuth - self.auth_token = "" + # access token for OAuth + self.access_token = "" {{/isOAuth}}{{/authMethods}} # Logging Settings @@ -242,7 +241,7 @@ class Configuration(object): 'type': 'oauth2', 'in': 'header', 'key': 'Authorization', - 'value': 'Bearer ' + self.auth_token + 'value': 'Bearer ' + self.access_token }, {{/isOauth}}{{/authMethods}} }