From 88838550fb70a6847b8b1e4ccf78e037a2ddab2a Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Thu, 5 Oct 2023 11:00:48 -0700 Subject: [PATCH] app: use long-lived inter-service JWTs for BGS, AppView --- app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1b25f48..8eb3c79 100644 --- a/app.py +++ b/app.py @@ -75,7 +75,8 @@ APPVIEW_JWT = util.service_jwt(host=os.environ['APPVIEW_HOST'], repo_did=os.environ['REPO_DID'], - privkey=privkey) + privkey=privkey, + expiration=timedelta(days=999)) APPVIEW_HEADERS = { 'User-Agent': util.USER_AGENT, 'Authorization': f'Bearer {APPVIEW_JWT}', @@ -174,7 +175,8 @@ def homepage(): BGS_JWT = util.service_jwt(host=os.environ['BGS_HOST'], repo_did=os.environ['REPO_DID'], - privkey=privkey) + privkey=privkey, + expiration=timedelta(days=999)) BGS_HEADERS = { 'User-Agent': util.USER_AGENT, 'Authorization': f'Bearer {BGS_JWT}',