Save all tokens to the session

Created on 3 October 2024, 4 months ago

Problem/Motivation

Currently, in OpenIdConnect::completeAuthorization() only the 'id_token' and 'access_token' values are saved to the session, even though we also have an 'expire' and 'refresh_token' value. So all of this information is lost unless you do something with it in your own hook_openid_connect_post_authorize().

Let's fix that by saving this information to the session.

Steps to reproduce

Try to retrieve refresh token or token expiry and see that you can't.

Proposed resolution

Apply same logic as used for other tokens.

Remaining tasks

N/A

User interface changes

N/A

API changes

New methods to set and retrieve refresh token and expiry.

Data model changes

N/A

โœจ Feature request
Status

Active

Version

3.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024