Update swagger-ui to reuse client authorizations properly

Fixes #472
This commit is contained in:
Jeremy Whitlock
2015-06-05 17:45:14 -06:00
parent 26ac3af551
commit a4124fba7c
3 changed files with 11290 additions and 982 deletions

View File

@@ -91,7 +91,7 @@ window.SwaggerUi = Backbone.Router.extend({
url = this.buildUrl(window.location.href.toString(), url);
}
if(this.api) {
this.options.authorizations = this.api.clientAuthorizations;
this.options.authorizations = this.api.clientAuthorizations.authz;
}
this.options.url = url;
this.headerView.update(url);