Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72888
| Date | 2014-06-06 16:52 -0700 |
|---|---|
| Subject | http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface? |
| From | Dan Stromberg <drsalists@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10835.1402098782.18130.python-list@python.org> (permalink) |
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. And this needs first and foremost to be machine-callable, so JavaScript probably isn't a great solution for us. Does BaseHTTPRequestHandler add a way of dealing with Basic Auth logout by any chance? I googled about it, and didn't find anything. I could rewrite to work with Django's authentication system I suppose. Does this work reasonably well for REST API's? How do you pass the credentials? Is it a cookie? Thanks!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface? Dan Stromberg <drsalists@gmail.com> - 2014-06-06 16:52 -0700 Re: http.server.BaseHTTPRequestHandler basic auth logout? Django authentication system for REST interface? Roy Smith <roy@panix.com> - 2014-06-06 21:26 -0400
csiph-web