Пример #1
0
def turbogears_challenge_decider(environ, status, headers):
    if 'tg.skip_auth_challenge' in environ:
        return None

    return default_challenge_decider(environ, status, headers)
Пример #2
0
def turbogears_challenge_decider(environ, status, headers):
    if 'tg.skip_auth_challenge' in environ:
        return None

    return default_challenge_decider(environ, status, headers)
Пример #3
0
 def __call__(self, environ, status, headers):
     '''Challenge if marker present and not in https'''
     request = Request(environ)
     if self.needs_redirect(request):
         return True
     return default_challenge_decider(environ, status, headers)