Exemplo n.º 1
0
 def auth_token_validation(auth_token, *args, **kwargs):
     auth_status = get_auth_status(auth_token)
     if auth_status != 'valid':
         return get_auth_response(auth_status)
     return func(auth_token, *args, **kwargs)
Exemplo n.º 2
0
def authorize(auth_token):
    auth_token = str(auth_token)
    return get_auth_response(get_auth_status(auth_token))