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

Commit 5e4cd0d

Browse files
committed
Merge pull request swagger-api#2205 from FlaxHaxx/master
Fixed swagger-api#2193. Changed logout click to remove basic authentication header by using the configured value as key instead of "basic".
2 parents 76047e0 + 357df79 commit 5e4cd0d

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' ? 'basic' : 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)