From eebb6c4dd0b48469bfe243fd81a487736d12d623 Mon Sep 17 00:00:00 2001 From: wing328 Date: Tue, 3 Nov 2015 10:17:47 +0800 Subject: [PATCH] rename auth token to access token --- .../src/main/resources/python/configuration.mustache | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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}} }