- Timestamp:
- 07/06/10 15:11:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/MyProxyWebService/myproxy/server/wsgi/middleware.py
r6938 r6943 15 15 import socket 16 16 import httplib 17 from cStringIO import StringIO 17 import base64 18 18 19 19 from webob import Request … … 98 98 99 99 # Default environ key names 100 LOGON_FUNC_ENV_KEYNAME = ('myproxy.server.wsgi.middleware.'101 'MyProxyClientMiddleware.logon')100 DEFAULT_LOGON_FUNC_ENV_KEYNAME = ('myproxy.server.wsgi.middleware.' 101 'MyProxyClientMiddleware.logon') 102 102 103 103 CERT_REQ_POST_PARAM_KEYNAME = 'certificate_request' … … 175 175 176 176 logonFuncEnvKeyOptName = prefix + \ 177 MyProxyClientMiddleware.LOGON_FUNC_ENV_KEYNAME_OPTNAME177 MyProxyClientMiddleware.LOGON_FUNC_ENV_KEYNAME_OPTNAME 178 178 179 179 self.logonFuncEnvironKeyName = app_conf.get(logonFuncEnvKeyOptName, 180 MyProxyClientMiddleware.LOGON_FUNC_ENV_KEYNAME)180 MyProxyClientMiddleware.DEFAULT_LOGON_FUNC_ENV_KEYNAME) 181 181 182 182 def _getLogonFuncEnvironKeyName(self): … … 469 469 470 470 # Serialise dict response 471 response = "\n".join(["%s=%s" % i for i in trustRoots.items()]) 471 response = "\n".join(["%s=%s" % (k, base64.b64encode(v)) 472 for k,v in trustRoots.items()]) 472 473 473 474 return response
Note: See TracChangeset
for help on using the changeset viewer.