Skip to content

XOAUTH2 authentication on refresh #8388

Open
@ll4strw

Description

@ll4strw

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions