source: cowsclient/trunk/cowsclient/controllers/securityredirect.py @ 5659

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsclient/trunk/cowsclient/controllers/securityredirect.py@5659
Revision 5659, 290 bytes checked in by domlowe, 11 years ago (diff)

adding securityredirect controller to enable ajax handling of new secure endpoints

Line 
1import logging
2
3from cowsclient.lib.base import *
4
5log = logging.getLogger(__name__)
6
7class SecurityredirectController(BaseController):
8    def index(self):
9        if 'ndg.security.auth' in request.cookies.keys():
10            return 'cookie found!'
11        else:
12            return abort(401)
13       
14
Note: See TracBrowser for help on using the repository browser.