You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a normal case, you would set quarkus.oidc.authentication.session-age-extension to 25m. We have a case where we wanted to close the session when the user closes his browser, so we modified the session cookies to have a 'Session' lifespan. This extends the quarkus session beyond those 30m.
We observed that after 30 minutes of inactivity, an attempt is made to refresh the id token. This request will fail, because the refresh token is expired. The refresh token has an expiry date, which could be checked before the refresh request.
Expected behavior
When an id token is expired, quarkus should check if the refresh token is expired. If the refresh token is expired, quarkus should not make an attempt te refresh the id token.
Actual behavior
Currently a ID token refresh is attempted without checking the expiry time of the refresh token.
How to Reproduce?
Modify the config so a quarkus session lives longer than a refresh token. For example:
refresh token age: 30m
quarkus.oidc.authentication.session-age-extension set to 1h
Succesfully log into your application
Stay idle for longer than 30m but not longer than 1h
Interact with your application
You will see the "Token as expired, trying to refresh it" debug log.
Output of uname -a or ver
No response
Output of java -version
java 17.0.5 2022-10-18 LTS
Quarkus version or git rev
3.6.1
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
We are using quarkus-oidc in our project. Our identity server is configured with the following settings:
In a normal case, you would set
quarkus.oidc.authentication.session-age-extension
to 25m. We have a case where we wanted to close the session when the user closes his browser, so we modified the session cookies to have a 'Session' lifespan. This extends the quarkus session beyond those 30m.We observed that after 30 minutes of inactivity, an attempt is made to refresh the id token. This request will fail, because the refresh token is expired. The refresh token has an expiry date, which could be checked before the refresh request.
Expected behavior
When an id token is expired, quarkus should check if the refresh token is expired. If the refresh token is expired, quarkus should not make an attempt te refresh the id token.
Actual behavior
Currently a ID token refresh is attempted without checking the expiry time of the refresh token.
How to Reproduce?
quarkus.oidc.authentication.session-age-extension
set to 1hOutput of
uname -a
orver
No response
Output of
java -version
java 17.0.5 2022-10-18 LTS
Quarkus version or git rev
3.6.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: