Fix #49 updating pyjwkest version to 1.0.6
pyjwkest has changed the type of value returned by the `long_to_base64` function, now it returns unicode.
This commit is contained in:
parent
aac15dbbc4
commit
6ff48091e5
|
@ -189,8 +189,8 @@ class JwksView(View):
|
|||
'alg': 'RS256',
|
||||
'use': 'sig',
|
||||
'kid': md5(key).hexdigest(),
|
||||
'n': long_to_base64(public_key.n).decode('utf-8'),
|
||||
'e': long_to_base64(public_key.e).decode('utf-8'),
|
||||
'n': long_to_base64(public_key.n),
|
||||
'e': long_to_base64(public_key.e),
|
||||
})
|
||||
|
||||
return JsonResponse(dic)
|
||||
|
|
Loading…
Reference in a new issue