From: Ant Zucaro <azucaro@gmail.com>
Date: Thu, 12 Jun 2014 14:43:10 +0000 (-0400)
Subject: Add pyramid_persona in the runtime config. Ensure it has default config params.
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e9a385fc972f3d9339bb42c1676168507be25067;p=xonotic%2Fxonstat.git

Add pyramid_persona in the runtime config. Ensure it has default config params.
---

diff --git a/development.ini b/development.ini
index 0f9af3b..28b3ada 100755
--- a/development.ini
+++ b/development.ini
@@ -21,6 +21,9 @@ cache.regions = hourly_term
 cache.type = memory
 cache.hourly_term.expire = 3600
 
+# Mozilla Persona settings
+persona.secret = This is a secret string. Please change me!
+persona.audiences = http://localhost:6543
 
 ##### XONSTAT CONFIG SETTINGS #####
 
diff --git a/xonstat/__init__.py b/xonstat/__init__.py
index 25f4a77..ff783f9 100644
--- a/xonstat/__init__.py
+++ b/xonstat/__init__.py
@@ -27,6 +27,10 @@ def main(global_config, **settings):
     # mako for templating
     config.include('pyramid_mako')
 
+    # Mozilla Persona as the login verifier. It defines default
+    # authentication and authorization policies.
+    config.include('pyramid_persona')
+
     # for json-encoded responses
     config.add_renderer('jsonp', JSONP(param_name='callback'))