source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/ @ 3893

Subversion URL:
Revision 3893, 1.0 KB checked in by pjkersha, 13 years ago (diff)

Security Single Sign On code separated out of ows_server code stack and put in ows_server can still run single sign on but in alternate modes:

  • Single Sign On Service run from within ows_server code stack - all SSO controllers, templates and globals are imported from
  • ... or ows_server runs as a client to a Single Sign On service running in a separate paster instance. ows_server imports SSO client interface code from


  • added logging config as available with Pylons 0.9.6

ows_server/ndgDiscovery.config: [NDG_SECURITY] settings are now divided into sub sections:

  • NDG_SECURITY.ssoClient - for running a client to a Single Sign On service
  • NDG_SECURITY.ssoService - for running an integral SSO service
  • NDG_SECURITY.wssecurity - digital signature for web service interfaces
  • TODO: separate section for Gatekeeper

ows_server/ows_server/models/ get rid of sslPeerCertDN setting to SM client - not needed

ows_server/ows_server/config/ include templates from

ows_server/ows_server/config/ call separate security SSO service/client middleware set-up

ows_server/ows_server/controllers/ separate wayf controller

ows_server/ows_server/controllers/ code moved to ows_server login extends this class
ows_server/ows_server/controllers/ likewise for logout - inherit from equivalent


  • stripFromURI returns str type not unicode
  • SecurityConfig? class no longer needed - code transfered to

ows_server/ows_server/lib/ remove security handling code and instead inherit from

ows_server/ows_server/public/layout/ndg2.css: fix to header image path

ows_server/ows_server/templates/ndgPage.kid: embed code to base 64 encode return to URL

1import sys,cgi
2from urlparse import urlsplit, urlunsplit
3import base64
5from ows_server.lib.base import *
7import logging
8log = logging.getLogger(__name__)
11    from \
12        import LoginController as _LoginController
14    class LoginController(_LoginController):
15        '''Provides the pylons controller for Login.  This is a wrapper class.
16        - All functionality is provided from
17        the NDG Security Single Sign On Service package'''
19except ImportError, e:
20    from warnings import warn
21    warn("Importing LoginController for Single Sign On Service: %s" % e, 
22         RuntimeWarning)
24    class LoginController(BaseController):
25        '''Raise a 404 error for case where Single Sign ON Service is disabled
26        '''   
28        def index(self):
29            ''' Ok, you really want to login here '''
30  "Single Sign On Service is disabled setting 404 error...")
31            abort(404)
Note: See TracBrowser for help on using the repository browser.