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

12232
dist/swagger-ui.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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