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_test/ndg/security/test/config/attributeauthority/sitea/siteAUserRoles.py

    r6039 r6052  
    1414from uuid import uuid4 
    1515 
     16from saml.common.xml import SAMLConstants 
     17from saml.saml2.core import (Assertion, Attribute, AttributeStatement, Issuer, 
     18                             SAMLVersion, Subject, NameID, Conditions, 
     19                             XSStringAttributeValue) 
    1620 
     21from ndg.security.common.X509 import X500DN 
    1722from ndg.security.server.attributeauthority import (AttributeInterface,  
    1823                                                    InvalidRequestorId,  
     
    2025                                                    AttributeReleaseDenied,  
    2126                                                    UserIdNotKnown) 
    22 from saml.common.xml import SAMLConstants 
    23 from saml.saml2.core import (Assertion, Attribute, AttributeStatement, Issuer, 
    24                              SAMLVersion, Subject, NameID, Conditions, 
    25                              XSStringAttributeValue) 
    2627 
    2728 
     
    8182     
    8283    VALID_USER_IDS = ("https://openid.localhost/philip.kershaw",) 
    83     VALID_REQUESTOR_IDS = ("/O=Site A/CN=Authorisation Service",  
    84                            "/O=Site B/CN=Authorisation Service") 
     84    VALID_REQUESTOR_IDS = ( 
     85        str(X500DN.fromString("/O=Site A/CN=Authorisation Service")),  
     86        str(X500DN.fromString("/O=Site B/CN=Authorisation Service")) 
     87    ) 
    8588     
    8689    ISSUER_NAME = "/O=Site A/CN=Attribute Authority" 
    8790     
    88     INSUFFICIENT_PRIVILEGES_REQUESTOR_ID = "/O=Site B/CN=Authorisation Service" 
     91    INSUFFICIENT_PRIVILEGES_REQUESTOR_ID = str( 
     92                    X500DN.fromString("/O=Site B/CN=Authorisation Service")) 
    8993     
    9094    def __init__(self, propertiesFilePath=None): 
Note: See TracChangeset for help on using the changeset viewer.