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