Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Dave Baird
2015-11-08 10:13:34 +00:00
160 changed files with 1918 additions and 4219 deletions

View File

@@ -328,7 +328,7 @@ sub update_params_for_auth {
}
elsif ($auth eq 'petstore_auth') {
# TODO support oauth
$header_params->{'Authorization'} = 'Bearer ' . $WWW::SwaggerClient::Configuration::access_token;
}
else {

View File

@@ -17,8 +17,12 @@ our $http_user_agent = 'Perl-Swagger';
# authenticaiton setting
our $api_key = {};
our $api_key_prefix = {};
our $username;
our $password;
# username and password for HTTP basic authentication
our $username = '';
our $password = '';
# access token for OAuth
our $access_token = '';
1;