From 895ca36ab57e868268a6f67d76e2cc096fd9879a Mon Sep 17 00:00:00 2001 From: juanifioren Date: Thu, 23 Jul 2015 16:17:28 -0300 Subject: [PATCH] Add decode "utf-8" to jwks_uri view. My fault! --- oidc_provider/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oidc_provider/views.py b/oidc_provider/views.py index d8d2dd3..ea1108a 100644 --- a/oidc_provider/views.py +++ b/oidc_provider/views.py @@ -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)