Ignore:
Timestamp:
14/08/08 16:19:34 (12 years ago)
Author:
pjkersha
Message:

Created ndg.security.server.pylons.container: generic pylons based container for NDG Security services. This is intended for OpenID Provider and Attribute Authority and Session Manager WSGI middleware. The latter two will replace Twisted based platform for these services.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/wsgi/openid_provider.py

    r4122 r4123  
    178178        self._renderer.session = self.session 
    179179         
     180        # Strip trailing slashes 
     181        if self.path[-1] == '/': 
     182            self.path = self.path[:-1] 
     183             
    180184        # Match against the first level in the path only to allow for the 'id' 
    181185        # and 'yadis' cases where a sub-level could contain a user ID 
    182         if self.path.startswith(self.paths['path_id']) or \ 
     186        if self.path in (self.paths['path_id'], self.paths['path_yadis']): 
     187            log.debug("No user id given in URL %s" % self.path) 
     188            return self.app(environ, start_response) 
     189             
     190        elif self.path.startswith(self.paths['path_id']) or \ 
    183191           self.path.startswith(self.paths['path_yadis']): 
    184192             
Note: See TracChangeset for help on using the changeset viewer.