diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-14 16:14:19 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-24 16:52:48 -0700 |
commit | 744f1c83b9c94a82612c981ec56782f3db457357 (patch) | |
tree | 78502d15d31e62a4f42b73e208c6eeb49a439847 /mediagoblin/app.py | |
parent | b56b6b1e77cc01aa1ebebd1c6c594ec79cb4d8c1 (diff) | |
download | mediagoblin-744f1c83b9c94a82612c981ec56782f3db457357.tar.lz mediagoblin-744f1c83b9c94a82612c981ec56782f3db457357.tar.xz mediagoblin-744f1c83b9c94a82612c981ec56782f3db457357.zip |
add a check for authentication plugin on startup and respond according to no_auth config option. allows instance to be run w/o authentication
Diffstat (limited to 'mediagoblin/app.py')
-rw-r--r-- | mediagoblin/app.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/app.py b/mediagoblin/app.py index 1984ce77..51c597aa 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -37,6 +37,7 @@ from mediagoblin.init import (get_jinja_loader, get_staticdirector, setup_storage) from mediagoblin.tools.pluginapi import PluginManager, hook_transform from mediagoblin.tools.crypto import setup_crypto +from mediagoblin.auth.tools import check_auth_enabled _log = logging.getLogger(__name__) @@ -97,6 +98,9 @@ class MediaGoblinApp(object): PluginManager().get_template_paths() ) + # Check if authentication plugin is enabled and respond accordingly. + self.auth = check_auth_enabled() + # Set up storage systems self.public_store, self.queue_store = setup_storage() |