You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Dave Brondsema <br...@users.sf.net> on 2014/05/19 17:56:04 UTC
[allura:tickets] #7401 Allow custom middleware
---
** [tickets:#7401] Allow custom middleware**
**Status:** in-progress
**Milestone:** forge-may-30
**Created:** Mon May 19, 2014 03:56 PM UTC by Dave Brondsema
**Last Updated:** Mon May 19, 2014 03:56 PM UTC
**Owner:** Dave Brondsema
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:
::python
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)
---
Sent from sourceforge.net because dev@allura.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7401 Allow custom middleware
Posted by Cory Johns <ma...@users.sf.net>.
- **status**: code-review --> closed
- **QA**: Cory Johns
- **Comment**:
Merged
---
** [tickets:#7401] Allow custom middleware**
**Status:** closed
**Milestone:** forge-may-30
**Created:** Mon May 19, 2014 03:56 PM UTC by Dave Brondsema
**Last Updated:** Mon May 19, 2014 07:52 PM UTC
**Owner:** Dave Brondsema
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:
::python
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)
---
Sent from sourceforge.net because dev@allura.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7401 Allow custom middleware
Posted by Dave Brondsema <br...@users.sf.net>.
- **status**: in-progress --> code-review
- **Comment**:
Changes in allura:db/7401
---
** [tickets:#7401] Allow custom middleware**
**Status:** code-review
**Milestone:** forge-may-30
**Created:** Mon May 19, 2014 03:56 PM UTC by Dave Brondsema
**Last Updated:** Mon May 19, 2014 03:56 PM UTC
**Owner:** Dave Brondsema
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:
::python
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)
---
Sent from sourceforge.net because dev@allura.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.