]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add pyramid_persona in the runtime config. Ensure it has default config params.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 12 Jun 2014 14:43:10 +0000 (10:43 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 12 Jun 2014 14:43:10 +0000 (10:43 -0400)
development.ini
xonstat/__init__.py

index 0f9af3b7acc6d817dc980ab8b9e0302e52893d3a..28b3adae222315a82f4c3cac6ab908303c19342d 100755 (executable)
@@ -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 #####
 
index 25f4a77c853043e1cb7b022f8619f1992f97e858..ff783f9da855369079d2e6e1b09652338127b407 100644 (file)
@@ -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'))