Changeset 421


Ignore:
Timestamp:
10/06/05 18:04:28 (14 years ago)
Author:
pjkersha
Message:

attrAuthority.wsdl: interface specifies attrCert to be returned rather than
status. On successful call the string text of an attribute certificate is
returned to the client.

attrAuthorityServer.py attrCertReq.py: modified to agree with the above.

Location:
security/trunk/python
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • security/trunk/python/AttAuthorityServer.py

    r419 r421  
    3131    """NDG Attribute Authority WS interface for user authorisation.""" 
    3232     
    33     response = reqAuthorisationResponseWrapper() 
     33    resp = reqAuthorisationResponseWrapper() 
    3434 
    3535     
    3636    # Request a new attribute certificate from the Attribute Authority 
    3737    try: 
    38         try: 
    39             attrAuthority.createAttrCert(usrProxyCertFileTxt=usrProxyCert, 
    40                                          extAttrCertFileTxt=usrAttrCert) 
    41             response._status = "Access granted" 
    42  
    43         finally: 
    44             os.close(fhTmpUsrProxyCert) 
    45             os.remove(tmpUsrProxyCertFilePath) 
     38        resp._attrCert = attrAuthority.createAttrCert( 
     39                                            usrProxyCertFileTxt=usrProxyCert, 
     40                                            extAttrCertFileTxt=usrAttrCert) 
    4641         
    47     except Exception, excep: 
    48         response._status = "Access denied: " + str(excep) 
     42    except Exception, e: 
     43        resp._attrCert = "" 
    4944 
    5045     
    51     return response 
     46    return resp 
    5247 
    5348 
  • security/trunk/python/attAuthority.wsdl

    r416 r421  
    1717 
    1818  <message name="reqAuthorisationResponse"> 
    19     <part name="status" type="xsd:string"/> 
     19    <part name="attrCert" type="xsd:string"/> 
    2020  </message> 
    2121 
  • security/trunk/python/attrCertReq.py

    r416 r421  
    6363                                                   usrAttrCert=usrAttrCert) 
    6464         
    65         print "Response: %s" % response['status'] 
     65        print "Attribute Certificate:\n%s" % response['attrCert'] 
    6666         
    6767    except Exception, excep: 
Note: See TracChangeset for help on using the changeset viewer.