The ChallengerInterface class.
Bases: object
An interface for challenging users for login purposes. The chalenger basically does whatever it wants and _may_ result in doing something to a response that causes the user’s next request to pass an extractor.
Though there is no requirement for there to be a one to one correspondence between a Challenger and an Extractor, it will often be the case that a Challenger will need a particular Extractor in order to be effective.
A Challenger needs to take a WSGI request through to completion.
Respond to a GET request.
Respond to a POST request.
Present or validate a form for getting a username and password.
Bases: tiddlyweb.web.challengers.ChallengerInterface
A simple challenger that asks the user, by form, for their username and password and validates it against the user database. If it is good, a cookie is sent to the client which is later used by the simple_cookie credentials extractor.
Respond to a GET request by sending a form.
Respond to a POST by processing data sent from a form. The form should include a username and password. If it does not, send the form aagain. If it does, validate the data.