This commit is contained in:
Tony Tam
2016-07-14 22:13:24 -07:00
2 changed files with 54 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ window.SwaggerUi.utils = {
auths[key] = auths[key] || {};
if (auths[key].type === 'oauth2') {
singleOauth2Security[key] = Object.assign({}, auths[key]);
singleOauth2Security[key].scopes = Object.assign({}, auths[key].scopes);
for (var i in singleOauth2Security[key].scopes) {
if (item[key].indexOf(i) < 0) {
delete singleOauth2Security[key].scopes[i];