forked from loafle/openapi-generator-original
rename auth token to access token
This commit is contained in:
parent
89ec500744
commit
eebb6c4dd0
@ -71,10 +71,9 @@ class Configuration(object):
|
|||||||
self.username = ""
|
self.username = ""
|
||||||
# Password for HTTP basic authentication
|
# Password for HTTP basic authentication
|
||||||
self.password = ""
|
self.password = ""
|
||||||
|
|
||||||
{{#authMethods}}{{#isOAuth}}
|
{{#authMethods}}{{#isOAuth}}
|
||||||
# token for OAuth
|
# access token for OAuth
|
||||||
self.auth_token = ""
|
self.access_token = ""
|
||||||
{{/isOAuth}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}}
|
||||||
|
|
||||||
# Logging Settings
|
# Logging Settings
|
||||||
@ -242,7 +241,7 @@ class Configuration(object):
|
|||||||
'type': 'oauth2',
|
'type': 'oauth2',
|
||||||
'in': 'header',
|
'in': 'header',
|
||||||
'key': 'Authorization',
|
'key': 'Authorization',
|
||||||
'value': 'Bearer ' + self.auth_token
|
'value': 'Bearer ' + self.access_token
|
||||||
},
|
},
|
||||||
{{/isOauth}}{{/authMethods}}
|
{{/isOauth}}{{/authMethods}}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user