Skip to content

Commit d5c79f8

Browse files
committed
added authorizations
1 parent eb70c73 commit d5c79f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/javascript/SwaggerUi.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ window.SwaggerUi = Backbone.Router.extend({
9090
if (url && url.indexOf('http') !== 0) {
9191
url = this.buildUrl(window.location.href.toString(), url);
9292
}
93-
93+
if(this.api) {
94+
this.options.authorizations = this.api.clientAuthorizations;
95+
}
9496
this.options.url = url;
9597
this.headerView.update(url);
9698

0 commit comments

Comments
 (0)