1 | # |
---|
2 | # PasteDeploy ini file for Attribute Authority Unit tests Site A Server |
---|
3 | # |
---|
4 | # NERC Data Grid Project |
---|
5 | # |
---|
6 | # P J Kershaw 12/09/08 |
---|
7 | # |
---|
8 | # Copyright (C) 2009 Science and Technology Facilities Council |
---|
9 | # |
---|
10 | # BSD - See LICENCE file for details |
---|
11 | |
---|
12 | [DEFAULT] |
---|
13 | attributeAuthorityEnvironKeyName = attribute-authority |
---|
14 | attributeQueryInterfaceEnvironKeyName = attributeQueryInterface |
---|
15 | |
---|
16 | [server:main] |
---|
17 | use = egg:Paste#http |
---|
18 | host = 0.0.0.0 |
---|
19 | port = 5000 |
---|
20 | |
---|
21 | [app:mainApp] |
---|
22 | paste.app_factory = ndg.security.test.config.attributeauthority.sitea.sitea_attributeauthority:app_factory |
---|
23 | |
---|
24 | # Chain of SOAP Middleware filters - Nb. WS-Security filters apply to the SOAP |
---|
25 | # Binding filter only. |
---|
26 | [pipeline:main] |
---|
27 | pipeline = AttributeAuthorityFilter |
---|
28 | AttributeAuthoritySamlSoapBindingFilter |
---|
29 | mainApp |
---|
30 | |
---|
31 | |
---|
32 | [filter:AttributeAuthorityFilter] |
---|
33 | paste.filter_app_factory = ndg.security.server.wsgi.attributeauthority:AttributeAuthorityMiddleware.filter_app_factory |
---|
34 | prefix = attributeAuthority. |
---|
35 | |
---|
36 | # Key name by which the WSDL SOAP based interface may reference this |
---|
37 | # service |
---|
38 | attributeAuthority.environKeyName = %(attributeAuthorityEnvironKeyName)s |
---|
39 | |
---|
40 | # Key name for the SAML SOAP binding based interface to reference this |
---|
41 | # service's attribute query method |
---|
42 | attributeAuthority.environKeyNameAttributeQueryInterface: %(attributeQueryInterfaceEnvironKeyName)s |
---|
43 | |
---|
44 | # Attribute Authority settings... |
---|
45 | |
---|
46 | # Lifetime is measured in seconds |
---|
47 | attributeAuthority.assertionLifetime: 28800 |
---|
48 | |
---|
49 | # Settings for custom AttributeInterface derived class to get user roles for given |
---|
50 | # user ID |
---|
51 | attributeAuthority.attributeInterface.modFilePath: %(here)s |
---|
52 | attributeAuthority.attributeInterface.className: sitea_attributeinterface.TestUserRoles |
---|
53 | |
---|
54 | # SAML SOAP Binding to the Attribute Authority |
---|
55 | [filter:AttributeAuthoritySamlSoapBindingFilter] |
---|
56 | paste.filter_app_factory = ndg.security.server.wsgi.saml:SOAPQueryInterfaceMiddleware.filter_app_factory |
---|
57 | prefix = saml.soapbinding. |
---|
58 | |
---|
59 | saml.soapbinding.deserialise = ndg.saml.xml.etree:AttributeQueryElementTree.fromXML |
---|
60 | |
---|
61 | # Specialisation to incorporate ESG Group/Role type |
---|
62 | saml.soapbinding.serialise = ndg.security.common.saml_utils.esg.xml.etree:EsgResponseElementTree.toXML |
---|
63 | |
---|
64 | saml.soapbinding.pathMatchList = /AttributeAuthority |
---|
65 | saml.soapbinding.queryInterfaceKeyName = %(attributeQueryInterfaceEnvironKeyName)s |
---|
66 | |
---|
67 | # Clock skew for SAML Attribute Queries - allow clockSkew number of seconds |
---|
68 | # tolerance for query issueInstant parameter. Set here to 3 minutes |
---|
69 | saml.soapbinding.clockSkewTolerance: 180.0 |
---|
70 | |
---|
71 | saml.soapbinding.issuerName: /O=Site A/CN=Attribute Authority |
---|
72 | |
---|
73 | # Logging configuration |
---|
74 | [loggers] |
---|
75 | keys = root, ndg |
---|
76 | |
---|
77 | [handlers] |
---|
78 | keys = console |
---|
79 | |
---|
80 | [formatters] |
---|
81 | keys = generic |
---|
82 | |
---|
83 | [logger_root] |
---|
84 | level = INFO |
---|
85 | handlers = console |
---|
86 | |
---|
87 | [logger_ndg] |
---|
88 | level = DEBUG |
---|
89 | handlers = |
---|
90 | qualname = ndg |
---|
91 | |
---|
92 | [handler_console] |
---|
93 | class = StreamHandler |
---|
94 | args = (sys.stderr,) |
---|
95 | level = NOTSET |
---|
96 | formatter = generic |
---|
97 | |
---|
98 | [formatter_generic] |
---|
99 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
---|
100 | datefmt = %Y/%m/%d %H:%M:%S |
---|