extractors Package

extractors Package

The ExtractorInterface class.

class tiddlyweb.web.extractors.ExtractorInterface

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.

extract(environ, start_response)

Look at the incoming request and extract a user.

load_user(environ, usersign)

Check the user database for this user, to get roles and such.

http_basic Module

A very simple extractor that looks at the HTTP Authorization header and looks for Basic auth information therein.

class tiddlyweb.web.extractors.http_basic.Extractor

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.

extract(environ, start_response)

Look in the request for an Authorization header.

Table Of Contents

Previous topic

challengers Package

Next topic

handler Package

This Page