How to configure Gmail with OAuth2

Olivier Esser <[email protected]> Fri, 4 Mar 2022 20:24:07 +0100
Newsgroups gmane.mail.sylpheed.claws.general
Message-ID <20220304202407.75a8478a@pcolivier>
In the Account reference, there is an OAuth2 option, I can even select "Google/Gmail" in the "OAuth2 email service provider". But I am unable to configure an account with Gmail. I am unsure what I have to put in the Client ID and Client secret field. Whatever I try, when I click on "Open default browser with request", I land on a page that  "Authorization error". Is there a simple way to make claws mail to work with Gmail? For now, I use the standard IMAP authentication but t will soon be removed by Google.