Merge pull request #48 from ByteInternet/upgrade-pyjwkest

Upgrade pyjwkest to version >= 1.0.3
This commit is contained in:
Juan Ignacio Fiorentino 2015-09-30 12:57:37 -03:00
commit bb40475da3
2 changed files with 3 additions and 5 deletions

View file

@ -56,9 +56,7 @@ def encode_id_token(payload):
key_string = get_rsa_key().encode('utf-8')
keys = [ RSAKey(key=importKey(key_string), kid=md5(key_string).hexdigest()) ]
_jws = JWS(payload, alg='RS256')
_jwt = _jws.sign_compact(keys)
return _jwt.decode('utf-8')
return _jws.sign_compact(keys)
def create_token(user, client, id_token_dic, scope):

View file

@ -37,10 +37,10 @@ setup(
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
tests_require=[
'pyjwkest==1.0.1',
'pyjwkest>=1.0.3,<1.1',
],
install_requires=[
'pyjwkest==1.0.1',
'pyjwkest>=1.0.3,<1.1',
],
)