The ExtractorInterface class.
Bases: object
An interface for user extraction. Given a WSGI environ, figure out if the request has a valid user. If it does, return a hash including information about that user.
If it doesn’t return false.
Look at the incoming request and extract a user.
Check the user database for this user, to get roles and such.
A very simple extractor that looks at the HTTP Authorization header and looks for Basic auth information therein.
Bases: tiddlyweb.web.extractors.ExtractorInterface
An extractor for HTTP Basic Authentication. If there is an Authorization header attempt to get a username and password out of it. If the password is valid, return the user information.
Look in the request for an Authorization header.
An extractor for looking at a cookie named ‘tiddlyweb_user’.
Bases: tiddlyweb.web.extractors.ExtractorInterface
Look in the headers for a cookie named ‘tiddlyweb_user’. If it is there and the secret is valid, return the indicated user.
Extract the cookie, if there, from the headers and attempt to validate its contents.