source: TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/controllers/auth.py @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/controllers/auth.py@7080
Revision 7080, 334 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
Line 
1import logging
2
3from op.lib.base import *
4
5log = logging.getLogger(__name__)
6
7class AuthController(BaseController):
8
9    def index(self):
10        # Return a rendered template
11        #   return render('/some/template.mako')
12        # or, Return a response
13        return 'Hello World'
14
15    def private(self):
16        return abort(401)
Note: See TracBrowser for help on using the repository browser.