~bcsaller/charmworld/peer-support

« back to all changes in this revision

Viewing changes to charmworld/routes.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2013-09-04 01:13:31 UTC
  • mfrom: (377.1.2 fix-login)
  • Revision ID: tarmac-20130904011331-bkc6h4wl1mwdru31
[r=benji,sinzui][bug=][author=bac] Fix the login page.  Add route tests for login and logout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# the file LICENSE).
4
4
 
5
5
"""Create routes here and gets returned into __init__ main()"""
 
6
from charmworld.ubuntusso import add_ubuntu_sso_login
6
7
 
7
8
 
8
9
def build_routes(config):
112
113
    # Monitoring support.
113
114
    config.add_route('heartbeat', '/heartbeat')
114
115
 
 
116
    # Add login support.  It must precede the promulgated-charm route so it
 
117
    # doesn't get clobbered.
 
118
    add_ubuntu_sso_login(config, callback_path='/auth_callback')
 
119
 
115
120
    # Unnamespaced promulgated charms.
116
121
    config.add_route("promulgated-charm-revision",
117
122
                     "/{series}/{charm}-{revision}")