- Timestamp:
- 20 Jun 2013, 22:33:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/server.py
r10321 r10327 1 1 """A WSGI app for serving CAS. 2 2 """ 3 from webob import exc 3 from webob import exc, Response 4 4 from webob.dec import wsgify 5 5 … … 10 10 @wsgify 11 11 def __call__(self, req): 12 if req.path_qs in ['/login', '/validate', '/logout']: 13 return getattr(self, req.path_qs[1:])(req) 12 14 return exc.HTTPNotFound() 13 15 16 def login(self, req): 17 return Response('Hi there!') 18 19 def validate(self, req): 20 return exc.HTTPNotImplemented() 21 22 def logout(self, req): 23 return exc.HTTPNotImplemented() 14 24 15 25 cas_server = CASServer
Note: See TracChangeset for help on using the changeset viewer.