From abcbc7b1041e08828ddd9281026f268e70db6b4d Mon Sep 17 00:00:00 2001 From: Jon Wikman Date: Tue, 7 Jun 2016 10:29:51 +0200 Subject: [PATCH 1/2] Changed logout click to remove basic authentication header by using the configured value as key instead of "basic" --- src/main/javascript/view/AuthView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/javascript/view/AuthView.js b/src/main/javascript/view/AuthView.js index 4b636096..39f3995e 100644 --- a/src/main/javascript/view/AuthView.js +++ b/src/main/javascript/view/AuthView.js @@ -84,7 +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'); + var name = auth.get('type') === 'basic' ? auth.get('title') : auth.get('title'); window.swaggerUi.api.clientAuthorizations.remove(name); }); From 357df79f58940da3dd2e90c6b9e40bc8df8dc505 Mon Sep 17 00:00:00 2001 From: FlaxHaxx Date: Tue, 7 Jun 2016 15:34:50 +0200 Subject: [PATCH 2/2] Fixed #2193. Changed logout click to remove basic authentication header by using the configured value as key instead of basic. --- src/main/javascript/view/AuthView.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/javascript/view/AuthView.js b/src/main/javascript/view/AuthView.js index 39f3995e..beb81e6b 100644 --- a/src/main/javascript/view/AuthView.js +++ b/src/main/javascript/view/AuthView.js @@ -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();