Changed logout click to remove basic authentication header by using the configured value as key instead of "basic"

This commit is contained in:
Jon Wikman
2016-06-07 10:29:51 +02:00
parent 76047e07d5
commit abcbc7b104

View File

@@ -84,7 +84,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
e.preventDefault(); e.preventDefault();
this.authsCollectionView.collection.forEach(function (auth) { 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); window.swaggerUi.api.clientAuthorizations.remove(name);
}); });