From 91c8ef70a2b92b44bece7bcf1dd52af0fee271fd Mon Sep 17 00:00:00 2001 From: cce Date: Sat, 31 Dec 2005 08:04:38 +0000 Subject: - upgraded docs for paste.auth.digest and paste.auth.multi --- paste/auth/basic.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'paste/auth/basic.py') diff --git a/paste/auth/basic.py b/paste/auth/basic.py index b3e8f36..a255c59 100644 --- a/paste/auth/basic.py +++ b/paste/auth/basic.py @@ -5,14 +5,14 @@ """ Basic HTTP/1.0 Authentication -This module implements ``Basic`` authentication as described in HTTP/1.0 -specification [1]_ . Do not use this module unless you need to work -with very out-dated clients, instead use ``digest`` authentication. -Basically, you just put this module before your application, and it -takes care of requesting and handling authentication requests. +This module implements ``Basic`` authentication as described in +HTTP/1.0 specification [1]_ . Do not use this module unless you +are using SSL or need to work with very out-dated clients, instead +use ``digest`` authentication. >>> from paste.wsgilib import dump_environ >>> from paste.util.httpserver import serve +>>> from paste.auth.basic import AuthBasicHandler >>> realm = 'Test Realm' >>> def authfunc(username, password): ... return username == password @@ -97,7 +97,6 @@ middleware = AuthBasicHandler __all__ = ['AuthBasicHandler'] - if "__main__" == __name__: import doctest doctest.testmod(optionflags=doctest.ELLIPSIS) -- cgit v1.2.1