Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 357df79

Browse files
committed
Fixed swagger-api#2193. Changed logout click to remove basic authentication header by using the configured value as key instead of basic.
1 parent abcbc7b commit 357df79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/javascript/view/AuthView.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
8484
e.preventDefault();
8585

8686
this.authsCollectionView.collection.forEach(function (auth) {
87-
var name = auth.get('type') === 'basic' ? auth.get('title') : auth.get('title');
88-
89-
window.swaggerUi.api.clientAuthorizations.remove(name);
87+
window.swaggerUi.api.clientAuthorizations.remove(auth.get('title'));
9088
});
9189

9290
this.router.load();

0 commit comments

Comments
 (0)