Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72902

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Django': 0.03; 'dan': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:a 10': 0.09; '"standard': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'header:User-Agent:1': 0.23; 'server.': 0.24; 'login': 0.25; 'header:X-Complaints-To:1': 0.27; 'appear': 0.29; "doesn't": 0.30; 'code': 0.31; 'writes:': 0.31; 'handled': 0.32; 'basic': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'short': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subject:? ': 0.60; 'tell': 0.60; 'browser': 0.61; 'received:217': 0.63; 'subject:system': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From dieter <dieter@handshake.de>
Subject Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface?
Date Sat, 07 Jun 2014 08:23:53 +0200
References <CAGGBd_qov5yZZjC3i6u3bJ-HM+0oOz+euMWk61B8RhtjMwkqpw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e095e9.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:nVIsh5usREDNy1NSkHQUDyMwmeo=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10845.1402122248.18130.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1402122248 news.xs4all.nl 2972 [2001:888:2000:d::a6]:50305
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72902

Show key headers only | View raw


Dan Stromberg <drsalists@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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface? dieter <dieter@handshake.de> - 2014-06-07 08:23 +0200

csiph-web