From 6ff48091e58b522502d893511dd0fdebd39aa6ad Mon Sep 17 00:00:00 2001 From: Pablo SEMINARIO Date: Sat, 17 Oct 2015 23:49:59 +0200 Subject: [PATCH] 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. --- oidc_provider/views.py | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oidc_provider/views.py b/oidc_provider/views.py index a70d83b..db0aa98 100644 --- a/oidc_provider/views.py +++ b/oidc_provider/views.py @@ -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) diff --git a/setup.py b/setup.py index 7b90016..321ae98 100644 --- a/setup.py +++ b/setup.py @@ -37,11 +37,11 @@ setup( 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], tests_require=[ - 'pyjwkest>=1.0.3,<1.1', + 'pyjwkest>=1.0.6,<1.1', 'mock==1.3.0', ], install_requires=[ - 'pyjwkest>=1.0.3,<1.1', + 'pyjwkest>=1.0.6,<1.1', ], )