Merge pull request #2205 from FlaxHaxx/master

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:
Tony Tam
2016-06-07 07:19:15 -07:00

View File

@@ -84,9 +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');
window.swaggerUi.api.clientAuthorizations.remove(name);
window.swaggerUi.api.clientAuthorizations.remove(auth.get('title'));
});
this.router.load();