store the JWT token in current object if available
This commit is contained in:
parent
905ae5234f
commit
14b9aa7fa9
|
@ -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")
|
||||
|
|
Reference in New Issue