huggingface / knockknock

🚪✊Knock Knock: Get notified when your training ends with only two additional lines of code
MIT License
2.78k stars 234 forks source link

Google discontinues "Allow Less Secure Apps" #75

Open mcnoat opened 2 years ago

mcnoat commented 2 years ago

"To help keep your account secure, starting May 30, 2022, ​​Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password." -- https://support.google.com/accounts/answer/6010255?hl=en

Will that affect knockknock's mail notification feature?

philipph77 commented 2 years ago

You are right, it is no longer possible to activate "access through less secure apps" in your google account. However, you can still use knockknock's email sender by creating an app password in your google account (see: Sing in with App Passwords. Just create an app password for your script, and if asked enter that app password as mail password. Note that App Passwords can only be used with accounts that have 2-Step Verification turned on.

chiffa commented 1 year ago

Which kinda defeats the purpose of creating a separate email account to manage the alerts. Yagmail now has a pretty trivial Oauth2 implementation, so a patch is straightforward, but I am not seeing any pull requests accepted recently. Is the project still maintained?