FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 8fc6d639 authored by Adam Deacon's avatar Adam Deacon
Browse files

Merge branch 'im530_voucher_return' into 'master'

JWT encode funciton return string instead of bytes

See merge request !4
parents f443e56e f74f1f12
Branches master
No related tags found
1 merge request!4JWT encode funciton return string instead of bytes
Pipeline #294056 passed
......@@ -18,5 +18,5 @@ __pycache__/
# virtualenv files
venv/
voucherenv/
data/
......@@ -83,10 +83,10 @@ def generate_vouchers(vouchers_spec, env):
payload['nbf'] = nbf
payload['exp'] = exp
payload['auto_renewal'] = row[12]
# https://github.com/jpadilla/pyjwt/issues/505
token = jwt.encode(
payload, private_key, algorithm='ES256', headers=header
).decode('utf-8')
)
voucher = {}
voucher['School or College'] = row[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment