source: TI12-security/trunk/NDGSecurity/python/Tests/openidaxtest/openidaxtest/config/routing.py @ 6440

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/Tests/openidaxtest/openidaxtest/config/routing.py@6440
Revision 6440, 1.0 KB checked in by pjkersha, 11 years ago (diff)
  • #1088 Important fix to AuthnRedirectResponseMiddleware? to set redirect ONLY when SSL client authentication has just succeeded in the upstream middleware AuthKitSSLAuthnMiddleware. This bug was causing the browser to redirect to the wrong place following OpenID sign in in the case where the user is already logged into their provider and selects a new relying party to sign into.
    • Improvements to Provider decide page interface: leave out messages about attributes that the provider can't retrieve for the RP. Also included NDG style help icon.
Line 
1"""Routes configuration
2
3The more specific and detailed routes should be defined first so they
4may take precedent over the more generic routes. For more information
5refer to the routes manual at http://routes.groovie.org/docs/
6"""
7from pylons import config
8from routes import Mapper
9
10def make_map():
11    """Create, configure and return the routes Mapper"""
12    map = Mapper(directory=config['pylons.paths']['controllers'],
13                 always_scan=config['debug'])
14    map.minimization = False
15
16    # The ErrorController route (handles 404/500 error pages); it should
17    # likely stay at the top, ensuring it can always be resolved
18    map.connect('/error/{action}', controller='error')
19    map.connect('/error/{action}/{id}', controller='error')
20
21    # CUSTOM ROUTES HERE
22
23    map.connect('/{controller}/{action}')
24    map.connect('/{controller}/{action}/{id}')
25    map.connect('signout', '/signout', controller='hello', action='signout')
26    map.connect('signin', '/signin', controller='hello', action='signin')
27
28    return map
Note: See TracBrowser for help on using the repository browser.