Opened 11 years ago

Last modified 11 years ago

#240 closed defect (FIXED)

Provide facility for configuring application-required middleware

Reported by: nyergler Owned by: nyergler
Priority: minor Milestone: 0.1.0
Component: programming Keywords:
Cc: Parent Tickets:


Some things, like CSRF protection (`#361 </issues/361>`_), benefit
from the ability to uniformly call helpers before and after a
request is processed by the view. In the case of CSRF, we want to
confirm that the token matches before processing the view, and make
sure the token is set before delivering the response. Unlike WSGI
middleware, this sort of wrapping is an integral part of the


Change History (4)

comment:1 Changed 11 years ago by nyergler

Status: NewIn Progress
This is implemented in 569-application-middleware in my clone
([\ :sub:`nyergler/mediagoblin/nyerglers-mediagoblin/commits/569-application-middleware](`\ nyergler/mediagoblin/nyerglers-mediagoblin/commits/569-application-middleware))

comment:2 Changed 11 years ago by Christopher Allan Webber

Status: In ProgressClosed
Looks great to me. I suspect as for "configuration' of this
middleware our current config files suffice... maybe we could
create a standard for sections of the application for various
middleware configs, but otherwise looks great. Merged, and closed!

comment:3 Changed 11 years ago by Elrond

Component: InfrastructureProgramming

comment:3 Changed 11 years ago by Will Kahn-Greene

The original url for this bug was .

Note: See TracTickets for help on using tickets.