Open dejan9393 opened 4 years ago
This would require creeating a new Grant Type at src/OpenID/GrantType/RefreshToken.php
, using this grant type instead when the openid
option is set, and returning an id_token
if desired.
Hi, is anyone working on this? I'd like to have a shot if this is needed. Thanks.
Would love your review on #982 @dejan9393 @bshaffer Thanks
Currently, the refresh_token grant_type does not return an id_token, even when the openid scope is provided. The OIDC spec states the following:
The spec goes on to mention what parts of the id_token need to remain the same as the old ID token. This suggests that it should be optional to return an ID token on a successful token refresh.
In its current state, i'm successfully refreshing my access tokens, and I can retrieve info about my users at the
/userinfo
endpoint, but any apps using the id_tokens directly might be getting outdated data.