Answers.Body: <p>It's a known issue with using google + civi oauth. See <a href="https://lab.civicrm.org/dev/core/-/issues/2184" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2184</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-24T17:06:29.297Z
Answers.LastActivityDate: 2021-05-24T17:06:29.297Z
Answers.UserDisplayName: Demerit
Body: <p>Using CiviCRM 5.37.2.</p>
  <p>I'm trying to use the oath-client extension to do OAuth authentication of a Google Workspace (GSuite) account for bounce processing. The credentials are created on the Google side of things, and when I set up the Mail Account in CiviCRM and assign it to bounce processing, it works; &quot;Save and Test&quot; responds positively. And if I then go to the Scheduled Jobs and immediately execute the Bounces Fetcher job, it completes successfully.</p>
  <p>However, after a little while, it fails to run, with this error:</p>
  <pre><code>Parameters parsed (and passed to API method):
  a:1:{s:7:&quot;version&quot;;i:3;}
  
  Full message:
  Finished execution of Bounces fetcher with result: Failure, Error message: Could not connect to MailStore for [the email address used for bounce processing]
  Error message:
  
  Required parameter not passed: &quot;refresh_token&quot;
  </code></pre>
  <p>Is this a problem with the oauth-client extension, or have I mis-set a setting somewhere in CiviCRM?</p>
  
Tags: <civimail><google><oauth><bounce-processing>
Title: Bounce processing using oath-client with GSuite: Required parameter not passed: "refresh_token"
ThreadText: # Bounce processing using oath-client with GSuite: Required parameter not passed: "refresh_token"
  
  (Asked by: username_0 on 2021-05-24)
  
  Using CiviCRM 5.37.2.
  
  I'm trying to use the oath-client extension to do OAuth authentication of a Google Workspace (GSuite) account for bounce processing. The credentials are created on the Google side of things, and when I set up the Mail Account in CiviCRM and assign it to bounce processing, it works; "Save and Test" responds positively. And if I then go to the Scheduled Jobs and immediately execute the Bounces Fetcher job, it completes successfully.
  
  However, after a little while, it fails to run, with this error:
  
  ```
  Parameters parsed (and passed to API method):
  a:1:{s:7:"version";i:3;}
  
  Full message:
  Finished execution of Bounces fetcher with result: Failure, Error message: Could not connect to MailStore for [the email address used for bounce processing]
  Error message:
  
  Required parameter not passed: "refresh_token"
  
  ```
  
  Is this a problem with the oauth-client extension, or have I mis-set a setting somewhere in CiviCRM?
  
  **Tags:** civimail, google, oauth, bounce-processing
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-24. Score: 3
  
  It's a known issue with using google + civi oauth. See <https://lab.civicrm.org/dev/core/-/issues/2184>
  
  
  ---
  
  