backend.globaleaks.handlers.token

Module Contents

Classes

TokenCreate This class implement the handler for requesting a token.
TokenInstance This class implements the handler for updating a token (e.g.: solving a captcha)
class backend.globaleaks.handlers.token.TokenCreate[source]

Bases: globaleaks.handlers.base.BaseHandler

This class implement the handler for requesting a token.

check_roles = none[source]
post(self)[source]

This API create a Token, a temporary memory only object able to keep track of the submission. If the system is under stress, complete the submission will require some actions to be performed before the submission can be concluded (e.g. hashcash and captchas).

class backend.globaleaks.handlers.token.TokenInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

This class implements the handler for updating a token (e.g.: solving a captcha)

check_roles = none[source]
put(self, token_id)[source]