Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Fixed swagger-api#2193. Changed logout click to remove basic authenti…
Browse files Browse the repository at this point in the history
…cation header by using the configured value as key instead of basic.
  • Loading branch information
FlaxHaxx authored and kodekracker committed Mar 2, 2017
1 parent 310474f commit 4cd4e53
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' ? auth.get('title') : 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 4cd4e53

Please sign in to comment.