rename auth token to access token

This commit is contained in:
wing328 2015-11-03 10:17:47 +08:00
parent 89ec500744
commit eebb6c4dd0

View File

@ -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}}
}