Skip to content

Commit

Permalink
app: use long-lived inter-service JWTs for BGS, AppView
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Oct 5, 2023
1 parent 94c35a7 commit 8883855
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand Down Expand Up @@ -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}',
Expand Down

0 comments on commit 8883855

Please sign in to comment.