add application as aud in token

This commit is contained in:
Wolfgang Hottgenroth 2021-05-07 14:40:40 +02:00
parent 0911a73085
commit c7dbaeabbb
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -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]))