From abcbc7b1041e08828ddd9281026f268e70db6b4d Mon Sep 17 00:00:00 2001 From: Jon Wikman Date: Tue, 7 Jun 2016 10:29:51 +0200 Subject: [PATCH] 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); });