source: TI12-security/trunk/python/Tests/authtest/authtest/controllers/ @ 3892

Subversion URL:
Revision 3892, 292 bytes checked in by pjkersha, 14 years ago (diff)
  • Big changes enabling modularised security from Discovery/Browse? Pylons code stack. Changes are for login only and don't include the Gatekeeper yet.
  • Updates to OpenID AuthKit? test code to enable kid templates.

  • include client in class for globals - needed for server/sslServer config settings for SSO Client BaseController?
  • read WS-Security settings using,

  • Give specific alias for kid templates to enable a separate security templates dir to ows_server

  • ditto to above
  • fix to URL input into base 64 encode - convert from unicode to regular string as otherwise b64 code will fail

  • Provide full path to sso.* imports so that controllers can be imported across into ows_server or any other pylons code stack.
  • LoginServiceQuery? -> SSOServiceQuery

  • got rid of login status info - it's confusing to the user

  • added tracefile option for ZSI SOAP i/o display

  • SSOMiddleware interface changed to enable reading direct from an existing config object as well as from file

  • fixes for full path import statements + correct g config attr settings

  • enable processing of logout response from a separate SSO Service - logout flag in URL arg tells base controller to delete the security details from the cookie. typo fix


  • enable kid template for OpenID signin

Tests/authtest/authtest/controllers/ test controller

  • enable initialisation from an existing config file object fix to imports fix for altered WSSecurityConfig interface

  • fix to HostCheck?.call - check for peerCert is None when peer tries http instead of https
1import logging
3from authtest.lib.base import *
5log = logging.getLogger(__name__)
7class Test2Controller(BaseController):
9    def index(self):
10        # Return a rendered template
11        #   return render('/some/template.mako')
12        # or, Return a response
13        return 'Hello World'
Note: See TracBrowser for help on using the repository browser.