Skip to content

Commit

Permalink
Fix converting basicAuth athorization feom 1.2 to 2.0 schema version
Browse files Browse the repository at this point in the history
The basicAuth authentication type got lost.
  • Loading branch information
prantlf committed Nov 22, 2015
1 parent bbbd370 commit 4c3460e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/spec-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ SwaggerSpecConverter.prototype.securityDefinitions = function(obj, swagger) {
securityDefinition.name = definition.keyname || name;
isValid = true;
}
else if(definition.type === 'basicAuth') {
securityDefinition.type = 'basicAuth';
isValid = true;
}
else if(definition.type === 'oauth2') {
var existingScopes = definition.scopes || [];
var scopes = {};
Expand Down

0 comments on commit 4c3460e

Please sign in to comment.