From 74ff470d9ae4e0f9cf46e6ad07a5b5c38f10f4f0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 24 Apr 2024 07:02:01 +0300 Subject: Send assertion as a string, not bytes. --- gn2/wqflask/oauth2/toplevel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/oauth2/toplevel.py b/gn2/wqflask/oauth2/toplevel.py index 6b3db201..23965cc1 100644 --- a/gn2/wqflask/oauth2/toplevel.py +++ b/gn2/wqflask/oauth2/toplevel.py @@ -51,7 +51,7 @@ def authorisation_code(): "nbf": int(issued.timestamp()), "iat": int(issued.timestamp()), "jti": str(uuid.uuid4())}, - key=jwtkey), + key=jwtkey).decode("utf8"), "client_id": app.config["OAUTH2_CLIENT_ID"] } -- cgit v1.2.3