Opaque access token not refreshed in authorization code flow (related to issue #32109) #45093
-
Hello, I have the issue described here: #32109 I'm in an authorization code flow. The access tokens are opaque, and when introspection is run on a valid token the response is: As a result, no In this issue the proposed solution is to store the
Why can't we rely on a saved expiry date from the cookie? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@MickaelAlvarez Do you work with an OAuth2 provider ? I'm curious why the access token has to be introspected, thanks |
Beta Was this translation helpful? Give feedback.
Never mind, you said it clearly it is the same issue as in the linked issue.
To support such a case, the way the session cookie content is structured has to be reworked, right now tokens are concatenated and encrypted, but it really should be a JSON container, which can accommodate extra properties such as the binary access token expiry time.
I think the workaround at the the moment may be to to try to cause a valid ID token refresh, with
quarkus.oidc.token.refresh-token-time-skew
- which should keep returning a refreshed access token too...I'll try to prioritize on that issue now that we have several users asking about it...