| 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. |