From c7dbaeabbb9809864053f9572a65668ac478055c Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 7 May 2021 14:40:40 +0200 Subject: [PATCH] add application as aud in token --- auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.py b/auth.py index d6499c4..f1b9744 100755 --- a/auth.py +++ b/auth.py @@ -113,7 +113,8 @@ def generateToken(**args): "iss": JWT_ISSUER, "iat": int(timestamp), "exp": int(timestamp + userEntry.expiry), - "sub": str(userEntry.id) + "sub": str(userEntry.id), + "aud": application } for claim in userEntry.claims.items(): # print("DEBUG: generateToken: add claim {} -> {}".format(claim[0], claim[1]))