- Timestamp:
- 23/02/10 16:40:24 (11 years ago)
- Location:
- TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test
- Files:
-
- 1 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/config/attributeauthority/sitea/site-a.ini
r6586 r6615 108 108 prefix = saml.soapbinding. 109 109 110 saml.soapbinding.deserialise = saml.xml.etree:AttributeQueryElementTree.fromXML110 saml.soapbinding.deserialise = ndg.saml.xml.etree:AttributeQueryElementTree.fromXML 111 111 112 112 # Specialisation to incorporate ESG Group/Role type -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/config/attributeauthority/sitea/siteAUserRoles.py
r6578 r6615 14 14 from uuid import uuid4 15 15 16 from saml.common.xml import SAMLConstants17 from saml.saml2.core import (Assertion, Attribute, AttributeStatement, Issuer,16 from ndg.saml.common.xml import SAMLConstants 17 from ndg.saml.saml2.core import (Assertion, Attribute, AttributeStatement, Issuer, 18 18 SAMLVersion, Subject, NameID, Conditions, 19 19 XSStringAttributeValue) -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/config/sessionmanager/userx509certauthn.py
r5357 r6615 18 18 from ndg.security.server.sessionmanager import SessionManager, \ 19 19 AbstractAuthNService, AuthNServiceInvalidCredentials, AuthNServiceError 20 from ndg.security.common.myproxy import MyProxyClient 20 from myproxy.client import MyProxyClient 21 21 22 22 23 class UserX509CertAuthN(AbstractAuthNService): -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/authz_lite/securityservices.ini
r6605 r6615 414 414 prefix = saml.soapbinding. 415 415 416 saml.soapbinding.deserialise = saml.xml.etree:AttributeQueryElementTree.fromXML416 saml.soapbinding.deserialise = ndg.saml.xml.etree:AttributeQueryElementTree.fromXML 417 417 418 418 # Specialisation to incorporate ESG Group/Role type -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
r6069 r6615 244 244 from uuid import uuid4 245 245 from datetime import datetime 246 from saml.saml2.core import (Response, Attribute, SAMLVersion, Subject, NameID,246 from ndg.saml.saml2.core import (Response, Attribute, SAMLVersion, Subject, NameID, 247 247 Issuer, AttributeQuery, XSStringAttributeValue, 248 248 Status, StatusMessage, StatusCode) 249 from saml.xml import XMLConstants249 from ndg.saml.xml import XMLConstants 250 250 from ndg.security.common.saml_utils.esg import EsgSamlNamespaces 251 251 -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthorityclient/test_samlattributeauthorityclient.py
r6575 r6615 17 17 from xml.etree import ElementTree 18 18 19 from saml.common import SAMLVersion20 from saml.common.xml import SAMLConstants21 from saml.xml.etree import AttributeQueryElementTree, ResponseElementTree22 from saml.saml2.core import (Subject, Issuer, Attribute, NameID, AttributeQuery,19 from ndg.saml.common import SAMLVersion 20 from ndg.saml.common.xml import SAMLConstants 21 from ndg.saml.xml.etree import AttributeQueryElementTree, ResponseElementTree 22 from ndg.saml.saml2.core import (Subject, Issuer, Attribute, NameID, AttributeQuery, 23 23 StatusCode, XSStringAttributeValue, ) 24 24 -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/credentialwallet/test_credentialwallet.py
r6512 r6615 23 23 from time import sleep 24 24 from datetime import datetime, timedelta 25 from saml.utils import SAMLDateTime26 from saml.xml.etree import AssertionElementTree25 from ndg.saml.utils import SAMLDateTime 26 from ndg.saml.xml.etree import AssertionElementTree 27 27 28 28 from ndg.security.test.unit import BaseTestCase -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/saml/test_samlinterface.py
r6069 r6615 20 20 from xml.etree import ElementTree 21 21 22 from saml.saml2.core import (Response, Assertion, Attribute,22 from ndg.saml.saml2.core import (Response, Assertion, Attribute, 23 23 AttributeStatement, SAMLVersion, Subject, NameID, 24 24 Issuer, AttributeQuery, XSStringAttributeValue, 25 25 Conditions, Status, StatusCode) 26 from saml.xml import XMLConstants27 from saml.xml.etree import AttributeQueryElementTree, ResponseElementTree26 from ndg.saml.xml import XMLConstants 27 from ndg.saml.xml.etree import AttributeQueryElementTree, ResponseElementTree 28 28 29 29 from ndg.security.common.soap.client import (UrlLib2SOAPClient, -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/sessionmanager/userx509certauthn.py
r4840 r6615 16 16 from ndg.security.server.sessionmanager import SessionManager, \ 17 17 AbstractAuthNService, AuthNServiceInvalidCredentials, AuthNServiceError 18 from ndg.security.common.myproxy import MyProxyClient 18 from myproxy.client import MyProxyClient 19 19 20 20 21 class UserX509CertAuthN(AbstractAuthNService): -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/attribute-interface.ini
r6578 r6615 25 25 saml.pathMatchList = /attributeauthority/saml 26 26 saml.queryInterfaceKeyName = attributeQueryInterface 27 saml.deserialise = saml.xml.etree:AttributeQueryElementTree.fromXML27 saml.deserialise = ndg.saml.xml.etree:AttributeQueryElementTree.fromXML 28 28 29 29 # Specialisation to incorporate ESG Group/Role type -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/authz-decision-interface.ini
r6605 r6615 28 28 saml.pathMatchList = /authorisationservice 29 29 saml.queryInterfaceKeyName = AUTHZ_DECISION_QUERY_FUNC 30 saml.deserialise = saml.xml.etree:AuthzDecisionQueryElementTree.fromXML31 saml.serialise = saml.xml.etree:ResponseElementTree.toXML30 saml.deserialise = ndg.saml.xml.etree:AuthzDecisionQueryElementTree.fromXML 31 saml.serialise = ndg.saml.xml.etree:ResponseElementTree.toXML 32 32 33 33 #______________________________________________________________________________ -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/authz-service.ini
r6605 r6615 8 8 port = 5000 9 9 baseURI = localhost:%(port)s 10 10 queryInterfaceKeyName = AUTHZ_DECISION_QUERY_FUNC 11 11 [server:main] 12 12 use = egg:Paste#http … … 24 24 prefix = saml. 25 25 saml.pathMatchList = /authorisationservice 26 saml.queryInterfaceKeyName = AUTHZ_DECISION_QUERY_FUNC27 saml.deserialise = saml.xml.etree:AuthzDecisionQueryElementTree.fromXML28 saml.serialise = saml.xml.etree:ResponseElementTree.toXML26 saml.queryInterfaceKeyName = %(queryInterfaceKeyName)s 27 saml.deserialise = ndg.saml.xml.etree:AuthzDecisionQueryElementTree.fromXML 28 saml.serialise = ndg.saml.xml.etree:ResponseElementTree.toXML 29 29 30 30 #______________________________________________________________________________ … … 34 34 # This filter is a container for a binding to a SOAP based interface to the 35 35 # Attribute Authority 36 paste.filter_app_factory = ndg.security.server.wsgi.saml.authzservice:AuthzServiceMiddleware 37 queryInterfaceKeyName = AUTHZ_DECISION_QUERY_FUNC 36 paste.filter_app_factory = ndg.security.server.wsgi.authzservice:AuthzServiceMiddleware.filter_app_factory 37 prefix = authz. 38 authz.policy.filePath = %(here)s/policy-1.1.xml 39 authz.queryInterfaceKeyName = %(queryInterfaceKeyName)s 40 41 # AuthzDecisionQuery Response settings 42 authz.issuerName = /O=NDG/OU=CEDA/CN=Authorisation Service 43 authz.clockSkewTolerance = 1 44 authz.assertionLifetime = 86400 45 46 # Policy Information Point settings - makes an Attribute Queries to 47 # Attribute Authorities 48 authz.pip.attributeQuery.subjectIdFormat = urn:esg:openid 49 authz.pip.attributeQuery.verifyTimeConditions = True -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/test_soapattributeinterface.py
r6578 r6615 15 15 from cStringIO import StringIO 16 16 17 from saml.saml2.core import (Attribute, SAMLVersion, Subject, NameID, Issuer,17 from ndg.saml.saml2.core import (Attribute, SAMLVersion, Subject, NameID, Issuer, 18 18 AttributeQuery, XSStringAttributeValue, 19 19 StatusCode) 20 from saml.xml import XMLConstants21 from saml.xml.etree import AttributeQueryElementTree, ResponseElementTree20 from ndg.saml.xml import XMLConstants 21 from ndg.saml.xml.etree import AttributeQueryElementTree, ResponseElementTree 22 22 23 23 from ndg.security.common.soap.etree import SOAPEnvelope -
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/test_soapauthzdecisioninterface.py
r6605 r6615 15 15 from cStringIO import StringIO 16 16 17 from saml.saml2.core import (SAMLVersion, Subject, NameID, Issuer, Response,17 from ndg.saml.saml2.core import (SAMLVersion, Subject, NameID, Issuer, Response, 18 18 AuthzDecisionQuery, AuthzDecisionStatement, Status, 19 19 StatusCode, StatusMessage, DecisionType, Action, 20 20 Conditions, Assertion) 21 from saml.xml.etree import AuthzDecisionQueryElementTree, ResponseElementTree21 from ndg.saml.xml.etree import AuthzDecisionQueryElementTree, ResponseElementTree 22 22 23 23 from ndg.security.common.soap.etree import SOAPEnvelope … … 101 101 SoapSamlInterfaceMiddlewareTestCase): 102 102 CONFIG_FILENAME = 'authz-decision-interface.ini' 103 103 RESOURCE_URI = TestAuthorisationServiceMiddleware.RESOURCE_URI 104 104 105 def _createAuthzDecisionQuery(self, 105 issuer="/O=Site A/CN=PEP",106 subject="https://openid.localhost/philip.kershaw",107 resource=TestAuthorisationServiceMiddleware.RESOURCE_URI,108 action=Action.HTTP_GET_ACTION,109 actionNs=Action.GHPP_NS_URI):106 issuer="/O=Site A/CN=PEP", 107 subject="https://openid.localhost/philip.kershaw", 108 resource=RESOURCE_URI, 109 action=Action.HTTP_GET_ACTION, 110 actionNs=Action.GHPP_NS_URI): 110 111 query = AuthzDecisionQuery() 111 112 query.version = SAMLVersion(SAMLVersion.VERSION_20) … … 196 197 """ 197 198 CONFIG_FILENAME = 'authz-service.ini' 199 RESOURCE_URI = 'http://localhost/dap/data/my.nc.dods?time[0:1:0]' 200 201 def __init__(self, *arg, **kw): 202 """Extend base init to include SAML Attribute Authority required by 203 Authorisation Service""" 204 super(SOAPAuthzDecisionInterfaceMiddlewareTestCase, self).__init__( 205 *arg, **kw) 206 self.startSiteAAttributeAuthority(withSSL=True, port=5443) 198 207 199 208
Note: See TracChangeset
for help on using the changeset viewer.