merged from auth_2.0 branch
This commit is contained in:
3
dist/lib/swagger-client.js
vendored
3
dist/lib/swagger-client.js
vendored
@@ -389,6 +389,9 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
|
||||
this.produces = response.produces;
|
||||
this.securityDefinitions = response.securityDefinitions;
|
||||
|
||||
// legacy support
|
||||
this.authSchemes = response.securityDefinitions;
|
||||
|
||||
var location = this.parseUri(this.url);
|
||||
if(typeof this.schemes === 'undefined' || this.schemes.length === 0) {
|
||||
this.scheme = location.scheme;
|
||||
|
||||
Reference in New Issue
Block a user