Skip to content

Commit

Permalink
Merge pull request #2205 from FlaxHaxx/master
Browse files Browse the repository at this point in the history
Fixed #2193. Changed logout click to remove basic authentication header by using the configured value as key instead of "basic".
  • Loading branch information
fehguy committed Jun 7, 2016
2 parents 76047e0 + 357df79 commit 5e4cd0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/javascript/view/AuthView.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
e.preventDefault();

this.authsCollectionView.collection.forEach(function (auth) {
var name = auth.get('type') === 'basic' ? 'basic' : auth.get('title');

window.swaggerUi.api.clientAuthorizations.remove(name);
window.swaggerUi.api.clientAuthorizations.remove(auth.get('title'));
});

this.router.load();
Expand Down

0 comments on commit 5e4cd0d

Please sign in to comment.