- Timestamp:
- 07/06/10 15:11:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/MyProxyWebService/myproxy/server/wsgi/app.py
r6938 r6943 25 25 """ 26 26 PARAM_PREFIX = 'myproxy.' 27 LOGON_PARAM_PREFIX = 'logon.' 27 28 GET_TRUSTROOTS_PARAM_PREFIX = 'getTrustRoots.' 28 29 HTTPBASICAUTH_REALM_OPTNAME = 'httpbasicauth.realm' … … 44 45 45 46 # HTTP Basic auth middleware - a container for MyProxy logon 47 logonPrefix = prefix + cls.LOGON_PARAM_PREFIX 46 48 httpBasicAuthMWare = HttpBasicAuthMiddleware.filter_app_factory(app, 47 48 prefix=prefix,49 49 global_conf, 50 prefix=logonPrefix, 51 **app_conf) 50 52 51 53 # MyProxy get trust roots middleware … … 54 56 httpBasicAuthMWare, 55 57 global_conf, 56 prefix=getTrustRootsPrefix) 58 prefix=getTrustRootsPrefix, 59 **app_conf) 57 60 58 61 # Middleware to hold a MyProxy client and expose interface in environ … … 66 69 httpBasicAuthMWare.authnFuncEnvironKeyName = app.logonFuncEnvironKeyName 67 70 68 # Mirror callback function setting in HTTP Basic Auth middleware so 69 # that it correctly picks up the authentication function 71 # Set Get trust roots middleware to use the MyProxyClient environ key 72 # name set by MyProxyClientMiddleware 73 getTrustRootsMWare.clientEnvironKeyName = app.clientEnvironKeyName 74 75 # Pick up HTTP Basic Auth realm setting 70 76 realmOptName = prefix + cls.HTTPBASICAUTH_REALM_OPTNAME 71 77 httpBasicAuthMWare.realm = app_conf[realmOptName]
Note: See TracChangeset
for help on using the changeset viewer.