From 536e11ba5e142b36f2349928b8b67c75624dd9b0 Mon Sep 17 00:00:00 2001 From: BinamB Date: Fri, 20 Dec 2024 11:37:51 -0600 Subject: [PATCH] fix token --- fence/jwt/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/jwt/token.py b/fence/jwt/token.py index 6623a45ae..a748db72f 100644 --- a/fence/jwt/token.py +++ b/fence/jwt/token.py @@ -179,7 +179,7 @@ def generate_signed_session_token(kid, private_key, expires_in, context=None): claims = { "pur": "session", "aud": ["fence", issuer], - "sub": context.get("user_id", ""), + "sub": str(context.get("user_id", "")), "iss": issuer, "iat": iat, "exp": exp,