Commit Graph

6 Commits (d955d23e91bd1a9f7749991197f3b4b7b1a46e53)

Author SHA1 Message Date
Dustin d955d23e91 auth: decorators: Make validate_request public
The `_validate_request` function in `milla.auth.decorators` is a helper
used by the `auth_required` and `require_perms` decorators. It can also
be used by custom decorators, so it is now a first-class, documented,
public function.
2016-07-14 12:37:48 -05:00
Dustin 94b98a0620 auth: Allow Python classes as request validators (see #4)
In addition to setuptools entry point names, the authentication subsystem now
accepts Python classes directly as the value of the `milla.request_validator`
configuration setting. This removes the dependency on setuptools for
authentication, and allows more flexibility in application configuration.
2015-04-15 19:47:24 -05:00
Dustin 86b19bb9e7 Whitespace cleanup 2015-04-15 19:45:17 -05:00
Dustin C. Hatch d2705ad18e Better way to determine if a requirement is a Permission
--HG--
branch : py3k
2012-11-28 12:13:03 -06:00
Dustin C. Hatch 0fba1c95b9 Added licensing information and boilerplate messages 2011-04-05 23:47:44 -05:00
Dustin C. Hatch f3b0f44449 Imported authentication-related features from Thunder 2011-04-05 23:35:48 -05:00