Skip to content

Frequent re-authorization requests #123

@brianjmurrell

Description

@brianjmurrell

I frequently (seemingly daily, although that's not a scientific value) get requested to re-authorize my O365 SMTP connection with email-oauth2-proxy.

My email-oath2-proxy client is on a machine that connects to the corporate network by VPN, and the O365 servers through the corporate VPN. VPN connections are limited to something on the order of 12h per day. So every morning I [re-]connect my machine to the VPN and then 12h later I am disconnected until the next morning. So there is a period of about 12h where my client cannot reach the O365 servers.

It also appears that every morning I am also having to re-authorize email-oauth2-proxy, perhaps due to this lack of connectivity to O365 servers? But I do not have to do this same re-authorization with my Evolution EWS connection to O365 with it's OAuth2 token every morning. It seems to handle the 12h outage just fine and continues on with it's existing token once things are reconnected in the morning.

I should add that authorization to O365 happens (seemingly, but not really) passwordless due to having a Kerberos ticket.

So the question is, is having a network outage to O365 servers causing email-oath2-proxy to (incorrectly and) [overly-]aggressively discard what are actually valid tokens, leading to requesting the user to re-authorized much more frequently than necessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions