Description
Hello everybody.
I have roundcube v1.5.2 configured to authenticate users via OAuth with my identity provider. It does work rather well I should say, however I have been observing the following behavior.
A user logs in by being redirected to my identity provider login page ($config['oauth_login_redirect'] = true;
). An authorization token with validity of 5 minutes is issued and stored in the browser. If the user requests a refresh of his inbox or roundcube automatically refreshes the inbox view, then roundcube tries contacting to the IMAP server to authenticate that user via XOAUTH2 using an expired token, which clearly results in an authentication error.
In particular, roundcube displays a popup dialog saying AUTHENTICATE XOAUTH2: A0001 NO [AUTHENTICATIONFAILED] Authentication failed.
. Would not be better to redirect the user to the identity provider login page?