Ignore:
Timestamp:
22/05/08 15:08:26 (12 years ago)
Author:
pjkersha
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/wayf.py

    r3893 r3919  
    33log = logging.getLogger(__name__) 
    44 
    5 try: 
    6     from ndg.security.server.sso.sso.controllers.wayf import WayfController as\ 
    7         _WayfController 
    8          
    9     class WayfController(_WayfController): 
    10         '''Provides the pylons controller for Where Are You From.  This is a  
    11         wrapper class.  - All functionality is provided from  
    12         ndg.security.server.sso.sso the NDG Security Single Sign On Service  
    13         package''' 
    14              
    15 except ImportError, e: 
    16     from warnings import warn 
    17     warn("Importing WayfController for Single Sign On Service: %s" % e,  
    18          RuntimeWarning) 
    19      
    20     # Default to base version to avoid an exception if 'wayf' is invoked         
    21     class WayfController(BaseController): 
    22         ''' Raise a 404 error for case where Single Sign ON Service is disabled 
    23         '''         
    24         def index(self): 
    25             log.info("Single Sign On Service is disabled setting 404 error...") 
    26             abort(404) 
     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 TracChangeset for help on using the changeset viewer.