dns-ui icon indicating copy to clipboard operation
dns-ui copied to clipboard

No Logout Button

Open gurubert opened this issue 8 years ago • 2 comments

A logout button is missing.

gurubert avatar Aug 15 '17 22:08 gurubert

As long as authentication is being handled by Apache and HTTP auth, there's probably very little we can do here. However, it may be worthwhile to at least add the option of handling authentication directly in the application, for this reason and others (eg. allowing other auth methods for API calls).

thomas-pike avatar Aug 16 '17 11:08 thomas-pike

I have the following as a bookmarklet for logging out of basic auth sites... however, the correct solution is to move away from basic auth of course.

javascript:(function(c){var a,b="You should be logged out now.";try{a=document.execCommand("ClearAuthenticationCache")}catch(d){}a||((a=window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):void 0)?(a.open("HEAD",c||location.href,!0,"logout",(new Date).getTime().toString()),a.send(""),a=1):a=void 0);a||(b="Your browser is too old or too weird to support log out functionality. Close all windows and restart the browser.");alert(b)})(/*pass safeLocation here if you need*/);

edit: source of bookmarklet

mjbnz avatar Jan 29 '19 22:01 mjbnz