store the JWT token in current object if available

This commit is contained in:
Serghei Mihai 2015-02-10 10:08:19 +01:00
parent 905ae5234f
commit 14b9aa7fa9
1 changed files with 3 additions and 0 deletions

View File

@ -824,6 +824,9 @@ class Client(PBase):
else:
if "key" not in kwargs and "keyjar" not in kwargs:
kwargs["keyjar"] = self.keyjar
if 'id_token' in resp:
self.id_token = resp['id_token']
verf = resp.verify(**kwargs)
if not verf:
raise PyoidcError("Verification of the response failed")