source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/login.py @ 3919

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/login.py
Revision 3919, 975 bytes checked in by pjkersha, 12 years ago (diff)

Initial Integration of Single Sign On Service with OpenID and Pylons AuthKit?:

  • WAYF now contains an OpenID textbox for sign in
  • No role integration carried out yet - OpenID has no better privileges than an anonymous user(!)
  • Integrated into Authkit - requires lots of config settings in pylons ini file
  • HTTP 401 error get redirected automatically to WAYF
  • Need to create an AuthKit? egg from SVN 151 checkout - will put on NDG dist

SWITCH OFF security by setting standalone = False in ndgDiscovery.

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