Add decode "utf-8" to jwks_uri view. My fault!
This commit is contained in:
parent
d17efb7f0c
commit
895ca36ab5
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ class JwksView(View):
|
||||||
'alg': 'RS256',
|
'alg': 'RS256',
|
||||||
'use': 'sig',
|
'use': 'sig',
|
||||||
'kid': md5(key).hexdigest(),
|
'kid': md5(key).hexdigest(),
|
||||||
'n': long_to_base64(public_key.n).encode('utf-8'),
|
'n': long_to_base64(public_key.n).decode('utf-8'),
|
||||||
'e': long_to_base64(public_key.e).encode('utf-8'),
|
'e': long_to_base64(public_key.e).decode('utf-8'),
|
||||||
})
|
})
|
||||||
|
|
||||||
return JsonResponse(dic)
|
return JsonResponse(dic)
|
||||||
|
|
Loading…
Reference in a new issue