source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/openidprovider/securedapp.ini @ 7756

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/openidprovider/securedapp.ini@7756
Revision 7756, 3.1 KB checked in by pjkersha, 10 years ago (diff)

Incomplete - task 16: NDG Security 2.x.x - incl. updated Paster templates

Line 
1#
2# NDG Security AuthN WSGI Testing environment configuration.  This ini file
3# defines the configuration for a an application to be secured.  Security
4# filters placed in front of the application in the WSGI pipeline act as
5# client to security services running on a separate application stack.  - See
6# securityservices.ini
7#
8# NERC DataGrid
9#
10# Author: P J Kershaw
11#
12# Date: 01/07/09
13#
14# Copyright: STFC 2010
15#
16# Licence: BSD - See top-level LICENCE file for licence details
17#
18# The %(here)s variable will be replaced with the parent directory of this file
19#
20[DEFAULT]
21testConfigDir = %(here)s/../../config
22beakerSessionKeyName = beaker.session.ndg.security
23
24[server:main]
25use = egg:Paste#http
26host = 0.0.0.0
27port = 7080
28
29[pipeline:main]
30pipeline = BeakerSessionFilter
31                   AuthenticationRedirectFilter
32                   AuthenticationEnforcementFilter
33                   OpenIdTestApp
34
35[app:OpenIdTestApp]
36paste.app_factory = ndg.security.test.integration.openidprovider.securedapp:OpenIdTestHarnessApp.app_factory
37
38
39[filter:BeakerSessionFilter]
40paste.filter_app_factory = beaker.middleware:SessionMiddleware
41
42# Cookie name
43beaker.session.key = ndg.security.session
44
45# WSGI environ key name
46environ_key = %(beakerSessionKeyName)s
47beaker.session.secret = rBIvKXLa+REYB8pM/8pdPoorVpKQuaOW
48beaker.cache.data_dir = %(here)s/authn/beaker/cache
49beaker.session.data_dir = %(here)s/authn/beaker/sessions
50
51#beaker.session.cookie_domain = .localhost
52
53[filter:AuthenticationEnforcementFilter]
54paste.filter_app_factory = ndg.security.server.wsgi.authn:AuthenticationEnforcementFilter.filter_app_factory
55interceptUriPat = \S+/test_securedURI\S*
56
57[filter:AuthenticationRedirectFilter]
58paste.filter_app_factory = ndg.security.server.wsgi.authn:AuthenticationMiddleware
59prefix = authN.
60
61# Set redirect for OpenID Relying Party in the Security Services app instance
62authN.redirectURI = https://localhost:7443/verify
63
64# Default URI to return to if middleware wasn't able to set via HTTP_REFERER or
65# passed return to query argument
66authN.sessionHandler.defaultLogoutReturnToURI = https://localhost:7443/
67
68# AuthKit Set-up
69authkit.setup.method=cookie
70
71# This cookie name and secret MUST agree with the name used by the security web
72# services app
73authkit.cookie.name=ndg.security.auth
74authkit.cookie.secret=9wvZObs9anUEhSIAnJNoY2iJq59FfYZr
75authkit.cookie.signoutpath = /logout
76
77# Disable inclusion of client IP address from cookie signature due to
78# suspected problem with AuthKit setting it when a HTTP Proxy is in place
79authkit.cookie.includeip = False
80
81#authkit.cookie.params.expires = 2
82#authkit.cookie.params.domain = .localhost
83
84# environ key name for beaker session
85authkit.session.middleware = %(beakerSessionKeyName)s
86
87
88# Logging configuration
89[loggers]
90keys = root, ndg
91
92[handlers]
93keys = console
94
95[formatters]
96keys = generic
97
98[logger_root]
99level = INFO
100handlers = console
101
102[logger_ndg]
103level = DEBUG
104handlers =
105qualname = ndg
106
107[handler_console]
108class = StreamHandler
109args = (sys.stderr,)
110level = NOTSET
111formatter = generic
112
113[formatter_generic]
114format = %(asctime)s.%(msecs)03d %(levelname)-7.7s [%(name)s:%(lineno)s] %(message)s
115datefmt = %Y-%m-%d-%H:%M:%S
116
Note: See TracBrowser for help on using the repository browser.