http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?

dieter dieter at handshake.de
Sat Jun 7 02:23:53 EDT 2014


Dan Stromberg <drsalists at gmail.com> writes:

> I have some code for a web server.  Right now, it uses
> BaseHTTPRequestHandler with Basic Auth, but we want to be able to log
> out, and there doesn't appear to be a general way to log out of
> something using Basic Auth, short of turning to unportable JavaScript.

You can't: With "Basic Auth", the login is handled by the browser
(and not the server). This implies, that you must tell the browser
to logout (and not the server). There is no "standard way" to
tell the browser to logout.




More information about the Python-list mailing list