aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-24 07:02:01 +0300
committerFrederick Muriuki Muriithi2024-04-24 07:02:01 +0300
commit74ff470d9ae4e0f9cf46e6ad07a5b5c38f10f4f0 (patch)
tree6fb4adb21203318cce3815c4616d75e1d451ba9b /gn2/wqflask
parent72acd0388ef45dd35a4b933bc80bb277c7a8f567 (diff)
downloadgenenetwork2-74ff470d9ae4e0f9cf46e6ad07a5b5c38f10f4f0.tar.gz
Send assertion as a string, not bytes.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/toplevel.py2
1 files changed, 1 insertions, 1 deletions
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"]
}