unpluggd/FWRD — Issue #39: Basic Authentication/Permission System?
Author: unpluggd
Created: 2012-01-31 16:13:03+00:00
State: open
Labels: 0.4, Feature

Should a basic authentication/permission management be added to the framework?

For example:

```yaml
Config:
port: 8080
formats:
default: 'xsl'
xsl:
enabled: true
stylesheet: 'xsl/default.xsl'
authentication:
callable: models.auth:authticate
error_redirect: /auth/error

Routes:
- route: /private/details
callable: models.private:details
requires_auth: true
permissions: [contributor]
```

The above would require the ``request.authenticated`` attribute to be set to ``True``, and for iterable ``request.permissions`` to contain the keyword ``contributor``. If neither of these are set then an internal redirect happens which brings up the authentication screen/callable.