Gmail token expires every week


  • Used Zammad version: 3.6.x
  • Used Zammad installation source: (source, package, …) Docker
  • Operating system: ubuntu
  • Browser + version: Firefox

Expected behavior:

  • Configuring email accounts and not thinking about it anymore.

Actual behavior:

  • Every week all gmail accounts has to be reathorized
    Can’t use Channel::Driver::Smtp: #<RuntimeError: Failed to refresh XOAUTH2 access_token of provider ‘google’: Request failed! ERROR: invalid_grant (Token has been expired or revoked.)>"

Steps to reproduce the behavior:

  • Configure gmail channels, let some days and the platform stops fetching and sending.

##Additional info:
We are using the google’s oauth screen in testing mode(might that be the root cause?)

By searching google using your words:

google oauth screen testing mode token expired

I found this:

This is the crucial part:

A Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of “Testing” is issued a refresh token expiring in 7 days.

So yes, that seems to be the cause of the expiration.


1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.