Add decode "utf-8" to jwks_uri view. My fault!

This commit is contained in:
juanifioren 2015-07-23 16:17:28 -03:00
parent d17efb7f0c
commit 895ca36ab5

View file

@ -167,8 +167,8 @@ class JwksView(View):
'alg': 'RS256',
'use': 'sig',
'kid': md5(key).hexdigest(),
'n': long_to_base64(public_key.n).encode('utf-8'),
'e': long_to_base64(public_key.e).encode('utf-8'),
'n': long_to_base64(public_key.n).decode('utf-8'),
'e': long_to_base64(public_key.e).decode('utf-8'),
})
return JsonResponse(dic)