csrf

Cross Site Request Forgery middleware, borrowed from Django.

See also:

Given a Request object, return a csrf_token.

gratipay.security.csrf.add_token_to_response(response, csrf_token=None)[source]

Store the latest CSRF token as a cookie.