Ignore:
Timestamp:
26/11/09 12:01:22 (10 years ago)
Author:
pjkersha
Message:

Updated MyProxy? Cert extension app for use with improved SAML Attribute Query interface class AttributeQuerySslSOAPBinding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg_security_common/ndg/security/common/saml_utils/bindings.py

    r6050 r6052  
    231231 
    232232class AttributeQuerySOAPBinding(SOAPBinding):  
    233     """SAML Attribute Query SOAP Binding""" 
     233    """SAML Attribute Query SOAP Binding 
     234     
     235    Nb. Assumes X.509 subject type for query issuer 
     236    """ 
    234237    SUBJECT_ID_OPTNAME = 'subjectID' 
    235238    ISSUER_DN_OPTNAME = 'issuerDN' 
     
    375378            raise TypeError('Expecting string or X500DN type for "issuerDN"; ' 
    376379                            'got %r instead' % type(value)) 
    377         self.__issuerDN = value 
    378380 
    379381    issuerDN = property(_getIssuerDN, _setIssuerDN,  
     
    406408        attributeQuery.issueInstant = datetime.utcnow() 
    407409         
     410        if self.issuerDN is None: 
     411            raise AttributeError('No issuer DN has been set for SAML Attribute ' 
     412                                 'Query') 
     413         
    408414        attributeQuery.issuer = Issuer() 
    409415        attributeQuery.issuer.format = Issuer.X509_SUBJECT 
    410         attributeQuery.issuer.value = self.issuerDN 
     416        attributeQuery.issuer.value = str(self.issuerDN) 
    411417                         
    412418        attributeQuery.subject = Subject()   
Note: See TracChangeset for help on using the changeset viewer.