From e9a385fc972f3d9339bb42c1676168507be25067 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 12 Jun 2014 10:43:10 -0400 Subject: [PATCH] Add pyramid_persona in the runtime config. Ensure it has default config params. --- development.ini | 3 +++ xonstat/__init__.py | 4 ++++ 2 files changed, 7 insertions(+) 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')) -- 2.39.2