Browse Source

Fix - Swagger/Swashbuckle OAuth2 Authorizations not set #1134

bubble
vprefournier 9 years ago
parent
commit
6761fd7a98
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/swagger-oauth.js

+ 1
- 1
lib/swagger-oauth.js View File

@@ -277,7 +277,7 @@ window.onOAuthComplete = function onOAuthComplete(token) {
}
}
});
window.authorizations.add(oauth2KeyName, new ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
window.swaggerUi.api.clientAuthorizations.add(oauth2KeyName, new SwaggerClient.ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
}
}
}

Loading…
Cancel
Save