basic
HTTP basic authentication middleware
The basic module is accessible via the authkit.authenticate module.
This implementation is identical to the paste.auth.basic implemenation.
- Note:: If users are prompted to sign in this also seems to have the effect of
- signing them out.
Attributes
Functions
f make_basic_auth_handler(app, auth_conf, app_conf=None, global_conf=None, prefix='authkit.basic') ...
Classes
C AuthBasicAuthenticator(...) ...
implements Basic authentication details
This class contains 5 members.
C AuthBasicHandler(...) ...
HTTP/1.0 Basic authentication middleware
Parameters:
application
The application object is called only upon successful authentication, and can assume environ['REMOTE_USER'] is set. If the REMOTE_USER is already set, this middleware is simply pass-through.realm
This is a identifier for the authority that is requesting authorization. It is shown to the user and should be unique within the domain it is being used.authfunc
This is a mandatory user-defined function which takes a username and password for its first and second arguments respectively. It should return True if the user is authenticated.
This class contains 2 members.
C BasicAuthHandler(...) ...
HTTP/1.0 Basic authentication middleware
Parameters:
application
The application object is called only upon successful authentication, and can assume environ['REMOTE_USER'] is set. If the REMOTE_USER is already set, this middleware is simply pass-through.realm
This is a identifier for the authority that is requesting authorization. It is shown to the user and should be unique within the domain it is being used.authfunc
This is a mandatory user-defined function which takes a username and password for its first and second arguments respectively. It should return True if the user is authenticated.
This class contains 2 members.
C BasicUserSetter(...) ...
This class contains 2 members.
C TryToAddUsername(...) ...
This class contains 2 members.
C middleware(...) ...
HTTP/1.0 Basic authentication middleware
Parameters:
application
The application object is called only upon successful authentication, and can assume environ['REMOTE_USER'] is set. If the REMOTE_USER is already set, this middleware is simply pass-through.realm
This is a identifier for the authority that is requesting authorization. It is shown to the user and should be unique within the domain it is being used.authfunc
This is a mandatory user-defined function which takes a username and password for its first and second arguments respectively. It should return True if the user is authenticated.
This class contains 2 members.
See the source for more information.
