Ignore:
Timestamp:
02/11/12 22:12:32 (8 years ago)
Author:
pjkersha
Message:

Fixed SLCS example for bearer token passed in authorization header.

Location:
trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/authentication_filter.py

    r8060 r8253  
    4545    } 
    4646    # Configuration option defaults 
    47     propertyDefaults = { 
     47    PROPERTY_DEFAULTS = { 
    4848        BASE_URL_PATH_OPTION: '/authentication', 
    4949        COMBINED_AUTHORIZATION_OPTION: 'True', 
     
    322322    def _get_config_option(cls, prefix, local_conf, key): 
    323323        value = local_conf.get(prefix + key, 
    324                                cls.propertyDefaults.get(key,None)) 
     324                               cls.PROPERTY_DEFAULTS.get(key,None)) 
    325325        log.debug("AuthenticationFormMiddleware configuration %s=%s", 
    326326                  key, value) 
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/authorization_filter.py

    r8196 r8253  
    4747    } 
    4848    # Configuration option defaults 
    49     propertyDefaults = { 
     49    PROPERTY_DEFAULTS = { 
    5050        BASE_URL_PATH_OPTION: 'client_authorization', 
    5151        RENDERER_CLASS_OPTION: \ 
     
    366366    @classmethod 
    367367    def _get_config_option(cls, prefix, local_conf, key): 
    368         value = local_conf.get(prefix + key, cls.propertyDefaults.get(key, None)) 
     368        value = local_conf.get(prefix + key, cls.PROPERTY_DEFAULTS.get(key, None)) 
    369369        log.debug("Oauth2AuthorizationMiddleware configuration %s=%s", key, value) 
    370370        return value 
Note: See TracChangeset for help on using the changeset viewer.