From 744f1c83b9c94a82612c981ec56782f3db457357 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Tue, 14 May 2013 16:14:19 -0700 Subject: add a check for authentication plugin on startup and respond according to no_auth config option. allows instance to be run w/o authentication --- mediagoblin/app.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mediagoblin/app.py') 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() -- cgit v1.2.3