mail
mail copied to clipboard
Add Google OAuth support
Fixes https://github.com/nextcloud/mail/issues/6454
Todo
- [x] Show Sign in with Google
- [x] Properly restructure setup procedure to work well with fully automatic, manual and mixed setups https://github.com/nextcloud/mail/pull/6831
- [x] Save Google's refresh and access token after successful redirection back
- [x] If necessary update access token before an IMAP client is built
- [ ] Make sure the browser doesn't block the Google popup
- [x] Check/fix account update procedure
- [x] Handle closed popup
- [ ] Handle failed/cancelled user consent
- [ ] Admin settings page UI
- [ ] Any other edge cases
- [ ] Test migration from app password to oauth
- [ ] Test migration from broken account (login password) to oauth
Note to self: merge+making it work is in commit e93971446091f049bd373d7180073505cecfa115
This branch is becoming a bit hard to manage. I'm extracting the generic parts into separate PRs:
- REST API changes: https://github.com/nextcloud/mail/pull/7420
- DB changes: https://github.com/nextcloud/mail/pull/7421
Superseded by https://github.com/nextcloud/mail/pull/7430