'Override to customize the login URL based on the request.
By default, we use the ``login_url`` application setting.'

def get_login_url(self):

    self.require_setting('login_url', '@tornado.web.authenticated')
    return self.application.settings['login_url']
