Changeset 10327 for main/waeup.cas


Ignore:
Timestamp:
20 Jun 2013, 22:33:45 (11 years ago)
Author:
uli
Message:

Stubs for locations required by CAS protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/server.py

    r10321 r10327  
    11"""A WSGI app for serving CAS.
    22"""
    3 from webob import exc
     3from webob import exc, Response
    44from webob.dec import wsgify
    55
     
    1010    @wsgify
    1111    def __call__(self, req):
     12        if req.path_qs in ['/login', '/validate', '/logout']:
     13            return getattr(self, req.path_qs[1:])(req)
    1214        return exc.HTTPNotFound()
    1315
     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()
    1424
    1525cas_server = CASServer
Note: See TracChangeset for help on using the changeset viewer.