Hello, I am trying to implement some simple cookie based authentication in my Tornado application as per this guide:
http://tornado.readthedocs.org/en/latest/guide/security.html
However I cant seem to find where to set the tornado.web.settings object
settings = {
“cookie_secret”: “generate random secret here”,
“login_url”: “/login”,
}
In all the Tornado examples on tornado.readthedocs.org the settings is passed to the tornado.web.Application class:
application = tornado.web.Application([
(r"/", MainHandler),
(r"/login", LoginHandler),
], **settings)
but in Mopidy we simply use a factory that returns a list of request handlers and there doesnt seem to be anywhere to pass the settings
I have a feeling I’m missing something fairly straightforward here. Any help would be appreciated
Many thanks
Paul