Middleware should be an extension point so 3rd-party custom middleware can be added.
This will also allow removal of this SourceForge-specific code from Allura core:
if asbool(config.get('auth.method', 'local') == 'sfx'): import sfx.middleware d = h.config_with_prefix(config, 'auth.') d.update(h.config_with_prefix(config, 'sfx.')) app = sfx.middleware.SfxMiddleware(app, d)
Changes in allura:db/7401
Merged