This issue has been created
There is 1 update.
 
 
OpenId Connect / cid:jira-generated-image-avatar-d6a7b911-d80a-4c75-a0fb-9107dd789dc3 OIDC-341 Open

The authentication refresh token is lost when the provider does not send a new one

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-591f332f-b25f-442b-a380-5c5d775e6fef Thomas Mortagne created this issue on 19/Nov/26 10:59
 
Summary: The authentication refresh token is lost when the provider does not send a new one
Issue Type: cid:jira-generated-image-avatar-d6a7b911-d80a-4c75-a0fb-9107dd789dc3 Bug
Affects Versions: 2.22.0
Assignee: Unassigned
Components: Authenticator
Created: 19/Nov/26 10:59
Priority: cid:jira-generated-image-static-major-709a36e0-b5ff-4179-a54f-c2fd84489a17 Major
Reporter: Thomas Mortagne
Description:

When the access token stored in the session expires, the authenticator refreshes it using the refresh token received at login. But when the provider does not send a new refresh token in the answer (which is allowed, see RFC 6749 section 6: the client keeps using its current refresh token), the refresh token stored in the session is replaced by nothing.

As a consequence, the next time the access token expires, there is no refresh token anymore to refresh it, and the user is logged out of XWiki even though nothing is wrong on the provider side.

The current refresh token should be kept when the provider does not send a new one.

 
 

1 update

 
cid:jira-generated-image-avatar-591f332f-b25f-442b-a380-5c5d775e6fef Changes by Thomas Mortagne on 19/Nov/26 10:59
 
Assignee: Thomas Mortagne