Opened 13 years ago

Last modified 13 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 by nyergler, 13 years ago

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 by Christopher Allan Webber, 13 years ago

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 by Elrond, 13 years ago

Component: InfrastructureProgramming

comment:3 by Will Kahn-Greene, 12 years ago

The original url for this bug was .

Note: See TracTickets for help on using tickets.