service keys: do all the right stuff

This commit is contained in:
Jimmy Zelinskie 2016-03-23 18:16:03 -04:00 committed by Jimmy Zelinskie
parent 6ecff950ab
commit 4079dba167
7 changed files with 149 additions and 41 deletions

View file

@ -1,8 +1,6 @@
import requests
import os.path
from data.buildlogs import BuildLogs
from data.userevent import UserEventBuilder
import requests
def build_requests_session():
@ -303,3 +301,6 @@ class DefaultConfig(object):
# hide the ID range for production (in which this value is overridden). Should *not*
# be relied upon for secure encryption otherwise.
PAGE_TOKEN_KEY = 'um=/?Kqgp)2yQaS/A6C{NL=dXE&>C:}('
# The timeout for service key approval.
UNAPPROVED_SERVICE_KEY_TTL_SEC = 60 * 60 * 24 # One day