Ignore:
Timestamp:
23/11/09 13:48:59 (10 years ago)
Author:
pjkersha
Message:

Unit tested SamlCredentialWallet?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg_security_test/ndg/security/test/config/attributeauthority/sitea/siteAUserRoles.py

    r6018 r6039  
    2121                                                    UserIdNotKnown) 
    2222from saml.common.xml import SAMLConstants 
    23 from saml.saml2.core import (Assertion, Attribute, AttributeStatement,  
    24                              SAMLVersion, Subject, NameID,  
    25                              XSStringAttributeValue, Conditions) 
     23from saml.saml2.core import (Assertion, Attribute, AttributeStatement, Issuer, 
     24                             SAMLVersion, Subject, NameID, Conditions, 
     25                             XSStringAttributeValue) 
    2626 
    2727 
     
    8383    VALID_REQUESTOR_IDS = ("/O=Site A/CN=Authorisation Service",  
    8484                           "/O=Site B/CN=Authorisation Service") 
     85     
     86    ISSUER_NAME = "/O=Site A/CN=Attribute Authority" 
     87     
    8588    INSUFFICIENT_PRIVILEGES_REQUESTOR_ID = "/O=Site B/CN=Authorisation Service" 
    8689     
     
    125128        assertion.id = str(uuid4()) 
    126129        assertion.issueInstant = response.issueInstant 
     130     
     131        assertion.issuer = Issuer() 
     132        assertion.issuer.value = TestUserRoles.ISSUER_NAME 
     133        assertion.issuer.format = Issuer.X509_SUBJECT 
    127134         
    128135        assertion.conditions = Conditions() 
Note: See TracChangeset for help on using the changeset viewer.