Changeset 3699 for TI12-security
- Timestamp:
- 28/03/08 16:13:05 (12 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 50 added
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.common/ndg/security/common/wsSecurity.py
r3687 r3699 73 73 74 74 class OASIS(_OASIS): 75 WSSE11 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.1.xsd" 75 # wss4j 1.5.3 76 WSSE11 = "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" 77 # wss4j 1.5.1 78 #WSSE11 = "http://docs.oasis-open.org/wss/2005/xx/oasis-2005xx-wss-wssecurity-secext-1.1.xsd" 76 79 77 80 def getElements(node, nameList): -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso.cfg
r3676 r3699 8 8 [NDG_SECURITY] 9 9 # Server address for secure connections 10 sslServer: https://localhost11 server: http://localhost:400012 #sslServer: https://gabriel.badc.rl.ac.uk 13 #server: http://gabriel.badc.rl.ac.uk:4000 10 #sslServer: https://localhost 11 #server: http://localhost:4000 12 sslServer: https://localhost/sso 13 server: http://localhost/sso 14 14 15 15 # Redirect SOAP output to a file e.g. open(<somefile>, 'w') -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/config/ssoMiddleware.py
r3652 r3699 4 4 P J Kershaw 18/03/08 5 5 ''' 6 from sso.lib.security_util import SecurityConfig6 from ndg.security.common.pylons.security_util import SecurityConfig 7 7 8 8 class SSOMiddleware: -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/controllers/login.py
r3676 r3699 2 2 3 3 from sso.lib.base import * 4 from sso.lib.security_util import setSecuritySession, SecuritySession, \4 from ndg.security.common.pylons.security_util import setSecuritySession, SecuritySession, \ 5 5 LoginServiceQuery 6 6 from ndg.security.common.AttAuthority import AttAuthorityClient -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/controllers/logout.py
r3658 r3699 1 1 from sso.lib.base import * 2 from sso.lib.security_util import SecuritySession2 from ndg.security.common.pylons.security_util import SecuritySession 3 3 import logging 4 4 log = logging.getLogger(__name__) -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/lib/base.py
r3676 r3699 18 18 from base64 import urlsafe_b64encode 19 19 20 from sso.lib.security_util import setSecuritySession, LoginServiceQuery 20 from ndg.security.common.pylons.security_util import setSecuritySession, \ 21 LoginServiceQuery 21 22 22 23 import logging … … 50 51 51 52 log.debug("BaseController.__call__: c.requestURL = %s" % c.requestURL) 52 53 if 'h' in request.params:54 # 'h' corresponds to the setting of a session manager host i.e.55 # the request has come from a completed login from the login56 # service57 log.debug("Setting security session from URL query args ...")58 59 # Copy the query arguments into security session keys60 setSecuritySession()61 62 session.save()63 64 # Re-construct the URL removing the security related arguments65 qs = LoginServiceQuery.stripFromURI()66 67 log.debug('Switching from https to http...')68 cc = g.securityCfg.server+urllib.quote(environ.get('PATH_INFO',''))69 if qs:70 cc += "?" + qs71 72 log.debug('URL transport switched to http: "%s"' % cc)73 redirect_to(cc)74 53 75 54
Note: See TracChangeset
for help on using the changeset viewer.