Fixed #2193. Changed logout click to remove basic authentication header by using the configured value as key instead of basic.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user