Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.30.2
-
None
-
Unit
-
Unknown
-
N/A
-
Description
When refreshing the access token stored in the session, the provider may also send a new ID token (OpenID Connect Core section 12.2). It is currently ignored, and the session keeps the ID token received at login for the whole session.
This ID token is the one sent as id_token_hint in the logout request, and some providers refuse an ID token which is too old.
When the refresh answer contains a valid ID token (same issuer, subject and audience as the current one, as required by the specification), it should replace the one stored in the session. An invalid one should be ignored (with a warning) instead of logging the user out.