providers/oauth2: fix old id_token being sent when using token endpoint with grant_type=refresh_token

This commit is contained in:
Jens Langhammer
2020-12-27 14:28:27 +01:00
parent 885fcff495
commit b747022bc1
2 changed files with 9 additions and 6 deletions

View File

@ -248,9 +248,7 @@ class TokenView(View):
"expires_in": timedelta_from_string(
refresh_token.provider.token_validity
).seconds,
"id_token": self.params.provider.encode(
self.params.refresh_token.id_token.to_dict()
),
"id_token": self.params.provider.encode(refresh_token.id_token.to_dict()),
}
return dic