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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/wayf.py@3919
Revision 3919, 1.1 KB 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 
1from ows_server.lib.base import *
2import logging
3log = logging.getLogger(__name__)
4
5class WayfController(BaseController):
6    def index(self):
7        abort(401)
8#try:
9#    from ndg.security.server.sso.sso.controllers.wayf import WayfController as\
10#        _WayfController
11#       
12#    class WayfController(_WayfController):
13#        '''Provides the pylons controller for Where Are You From.  This is a
14#        wrapper class.  - All functionality is provided from
15#        ndg.security.server.sso.sso the NDG Security Single Sign On Service
16#        package'''
17#           
18#except ImportError, e:
19#    from warnings import warn
20#    warn("Importing WayfController for Single Sign On Service: %s" % e,
21#         RuntimeWarning)
22#   
23#    # Default to base version to avoid an exception if 'wayf' is invoked       
24#    class WayfController(BaseController):
25#        ''' Raise a 404 error for case where Single Sign ON Service is disabled
26#        '''       
27#        def index(self):
28#            log.info("Single Sign On Service is disabled setting 404 error...")
29#            abort(404)
Note: See TracBrowser for help on using the repository browser.