Commit 24c4e1df authored by andrea-manzi's avatar andrea-manzi
Browse files

fix for FTS-836

parent 41f3921d
......@@ -64,12 +64,11 @@ def do_authentication(credentials, env):
ts = dateutil.parser.parse(cred['ts'])
except (TypeError, ValueError):"Cannot decode certificate, signature or timestamp")
raise InvalidCredentials("Cannot decode certificate, signature or timestamp")
td = datetime.utcnow() - ts
td = datetime.utcnow() - ts.replace(tzinfo=None)
if td > timedelta(seconds=600):
msg = "Authorization has left %s" % td
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment