3 ms·
Shouldn't be _too_ hard to convert your scripts. I ran into the same problem and one workspace disallows App passwords. You can simply get the OAuth token with
by leipert 3y ago
Shouldn't be _too_ hard to convert your scripts.
I ran into the same problem and one workspace disallows App passwords. You can simply get the OAuth token with a little python script and then use it as the password: https://github.com/google/gmail-oauth2-tools/blob/master/python/oauth2.py https://github.com/google/gmail-oauth2-tools/blob/master/pyt...
(see for example https://github.com/lefcha/imapfilter/issues/186 https://github.com/lefcha/imapfilter/issues/186)
- booi 3y agoand then have to reauthenticate it every 2 weeks because the refresh token seemingly expires for no reason...
- justinc8687 3y agoIf you set your app to "production", the refresh token works properly. Ignore the verification steps. It'll yell at you, but it'll work.
- xmprt 3y agoHow can you set an app to production without Google verification if you're not in a workspace. I'm guessing the answer is that there is no way.
- nunez 3y agoThe refresh token shouldn't expire.