Changeset 5907


Ignore:
Timestamp:
29/10/09 13:29:26 (10 years ago)
Author:
pjkersha
Message:

Move MyProxy? certificate callout application into ndg.security.server and ndg.security.test. Too much trouble as separate egg.

Location:
TI12-security/trunk/python
Files:
5 added
8 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/m2Crypto/test.key

    r4082 r5907  
    1 -----BEGIN RSA PRIVATE KEY----- 
    2 MIIEowIBAAKCAQEArpbuNUHWVRwhjHzhTOdym+fcZdmD7HbaeoFdef2V//Wj41xM 
    3 ieMZy9XQft2dFBDYZIHLElojVhZTHoowMkwXxsmLt7hZF8fL7j3ssU/lflM9E0Uk 
    4 2dZxaAt97zXEruEHJoNqHTEQlH0qMALfuUrAaZEIXHDdTQDNRJl4oXvjJWaqS8Y5 
    5 Je8QREThIE5hRd9FoUlgfMNNnwzLyIH7s0KBci2yryeubAG/Qig5LkulbpnhxYLC 
    6 cLvs3THQ3kO5qYYbB0g11YOBgshZ0SpNwEEyhDzHUt3Ii2XmAh25/II08BR61fhM 
    7 ZvSJ/tVGJY4HfWG7B4PZzYwo5vn/tYH1mk7w5QIDAQABAoIBAQCQdxly/iBxWo60 
    8 Jh1zukxOj4QCzwLnps1P8z27FMeK/eJ33scCjeWpkios4An7MZktSW0UqXt135E1 
    9 wxjwdaBzABDZm/Q0xkGLyLfTXI5EgnIWQO+mRVifxGqXhsFSB6gYCUPEFfZnOE6x 
    10 XZ9sPluKvtTRUR79eb1glzGHRfEF31eBQdPkATA011twBNL3ApULxjlnFBch1LXD 
    11 lldbYb9wWV9Bcl9ftJ7Sr4kJ7gqiETWRgKuyMMwGfhIrr8PXB/oq9VOAGg+XSQQY 
    12 +0sm1URfh/N5Q7ES+dgOR4MTCn8LUFW859OqY5QZidqDxg/fTNNt6znx0FZcGfbd 
    13 oDJV6Oc9AoGBAOgjNePWgxiDYJohNWATs7fUXvT4cGrR6TdJKXd3T8bVp+AO94au 
    14 vM9iOZiCfQNRxGYHA25EfwflaF3yKLOvlsK7k1ewRvQ4Hqi/MRyRxIhPmLYCkavl 
    15 FOKHV3UeLItpRJMzjU4OBq2k1g3uC22ZYWWXFaYmP+KSW5ICq0v8M4SfAoGBAMCJ 
    16 UqbPP8MPht36P43dZJDX+GlPlhWcXrWCD0ePX0wExEBeg+M0GqHTWrz4OwSzHTY0 
    17 XPwPqm2kEICIhHyK/BSZ09CMOdHwUc3gRZULCrSnTkEcJY+XY9IftYcVXIL2xFfx 
    18 qXqiLe7Le7p2mscSKXUM4uE4Vz16JHDE3Kh3Gnf7AoGAdi2WvcrzKoOXpl/JoIPn 
    19 NmrzfJsOABOlOvQQHDWtc3hJ4pM8CGDk1l8XG0EzC4GRDq/7WyOb2BU+MLWbav61 
    20 LaX4uOeQ97uqQBY1lmnPN+XtxJtCNdSF8V0ddQ5Ldx28P4Q7J8WUOMp1/tl1D/LJ 
    21 1sI3z0Ihu+Luo0Kgmipmv9kCgYB+eTZL0RQHZCmpovsgi2/GHbhWJStnosIr5PV4 
    22 gluNKgxoZC2qj812w8l1HHJYUfg8ZQU3pmrDfuRAKm0tCncwaSPUeGh62axC2rGa 
    23 iBhONyCWcJDT1BSEMMQjqgqNFOBBDMPRhLs7g3sRL1vYrLuC4iYe382e2p8ZXJe+ 
    24 Kg6/BQKBgDlFDM9m/9A11PIlh/ir0KXUqtPA1q+Hn629BRsbbsH2HW+kj018RLT+ 
    25 SgRwhrqFtF5HCMXEh0ez/RyHHoMiVnan9jpLtGEdE8ojJnISjvkIyLUCCJdq8HYC 
    26 25UDHqKuoqHBiXWazfZ6MOlcIm6vp1FpVDygu59JHPROMxW+BAg/ 
    27 -----END RSA PRIVATE KEY----- 
  • TI12-security/trunk/python/ndg_security_myproxy_attribute_extapp/ndg/security/__init__.py

    r5898 r5907  
    1 """NDG Security ndg.security namespace package 
     1"""NDG Security ndg.security.test package for MyProxy Attribute Ext App 
    22 
    33NERC DataGrid Project  
     
    1212""" 
    1313__author__ = "P J Kershaw" 
    14 __date__ = "17/09/09" 
     14__date__ = "29/10/09" 
    1515__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    1616__license__ = "BSD - see LICENSE file in top-level directory" 
  • TI12-security/trunk/python/ndg_security_myproxy_attribute_extapp/ndg/security/server/__init__.py

    r5898 r5907  
    1 """NDG Security ndg.security.common.utils namespace package 
     1"""NDG Security ndg.security.server namespace package 
    22 
    33NERC DataGrid Project  
     
    1212""" 
    1313__author__ = "P J Kershaw" 
    14 __date__ = "17/09/09" 
     14__date__ = "29/10/09" 
    1515__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    1616__license__ = "BSD - see LICENSE file in top-level directory" 
  • TI12-security/trunk/python/ndg_security_myproxy_attribute_extapp/setup.py

    r5898 r5907  
    3333    url =                       'http://proj.badc.rl.ac.uk/ndg/wiki/Security', 
    3434    license =               'BSD - See LICENCE file for details', 
    35     install_requires =      ('ndg_security_server',), 
     35    install_requires =      ('ndg_security_server', 'ndg_security_test'), 
    3636    packages =                      find_packages(), 
    3737    namespace_packages =        ('ndg', 'ndg.security', 'ndg.security.server'), 
  • TI12-security/trunk/python/ndg_security_server/ndg/security/server/myproxy/__init__.py

    r5898 r5907  
    1 """NDG Security ndg.security.common.utils namespace package 
     1"""NDG Security ndg.security.server.myproxy package 
    22 
    33NERC DataGrid Project  
    4  
    5 This is a setuptools namespace_package.  DO NOT place any other 
    6 code in this file!  There is no guarantee that it will be installed 
    7 with easy_install.  See: 
    8  
    9 http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages 
    10  
    11 ... for details. 
    124""" 
    135__author__ = "P J Kershaw" 
    14 __date__ = "17/09/09" 
     6__date__ = "29/10/09" 
    157__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    168__license__ = "BSD - see LICENSE file in top-level directory" 
    179__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1810__revision__ = '$Id$' 
    19  
    20 __import__('pkg_resources').declare_namespace(__name__) 
  • TI12-security/trunk/python/ndg_security_server/ndg/security/server/myproxy/certificate_extapp/saml_attribute_assertion.py

    r5898 r5907  
    2929class SamlAssertionMyProxyCertExtApp(object): 
    3030    """Application to create a X.509 certificate extension containing a SAML 
    31     assertion for inclusion by MyProxy into an issued certificate""" 
     31    assertion for inclusion by MyProxy into an issued certificate 
     32     
     33    @type DEFAULT_ATTR_DESCR: tuple 
     34    @cvar DEFAULT_ATTR_DESCR: a tuple of tuples describing the default 
     35    SAML attributes to be queried from the Attribute Authority.  The format is, 
     36     
     37    ((<name>, <friendlyName>, <format>), (...), ...) 
     38     
     39    FriendlyName can be defaulted to None in which case it will be omitted from 
     40    the query 
     41    """ 
    3242    XSSTRING_NS = "%s#%s" % ( 
    3343        SAMLConstants.XSD_NS, 
     
    115125                                  "Attribute Authority") 
    116126         
    117     def _attributeQuery(self, attributeDescr=DEFAULT_ATTR_DESCR): 
     127    def attributeQuery(self): 
    118128        """Query an Attribute Authority to retrieve an assertion for the  
    119129        given user""" 
     
    135145                   
    136146        # Add list of attributes to query                       
    137         for name, friendlyName, format in attributeDescr: 
     147        for name, friendlyName, format in self.attributeDescr: 
    138148            attribute = Attribute() 
    139149            attribute.name = name 
  • TI12-security/trunk/python/ndg_security_test/ndg/security/test/unit/__init__.py

    r5779 r5907  
    7272    def startAttributeAuthorities(self): 
    7373        """Serve test Attribute Authorities to test against""" 
     74        self.startSiteAAttributeAuthority() 
     75        self.startSiteBAttributeAuthority() 
     76         
     77    def startSiteAAttributeAuthority(self): 
    7478        siteACfgFilePath = mkDataDirPath(join('attributeauthority',  
    7579                                              'sitea',  
     
    7882                        port=BaseTestCase.SITEA_ATTRIBUTEAUTHORITY_PORTNUM) 
    7983         
     84    def startSiteBAttributeAuthority(self): 
    8085        siteBCfgFilePath = mkDataDirPath(join('attributeauthority', 
    8186                                              'siteb',  
  • TI12-security/trunk/python/ndg_security_test/ndg/security/test/unit/attributeauthorityclient/test_attributeauthorityclient.py

    r5774 r5907  
    22"""NDG Attribute Authority SOAP client unit tests 
    33 
    4 NERC Data Grid Project 
     4NERC DataGrid Project 
    55""" 
    66__author__ = "P J Kershaw" 
Note: See TracChangeset for help on using the changeset viewer.