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:
Pablo SEMINARIO 2015-10-17 23:49:59 +02:00
parent aac15dbbc4
commit 6ff48091e5
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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',
],
)