-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: GoogleOAuth #16935
refactor!: GoogleOAuth #16935
Conversation
42455b2
to
8ce1da7
Compare
Codecov Report
@@ Coverage Diff @@
## develop #16935 +/- ##
===========================================
+ Coverage 58.71% 61.09% +2.37%
===========================================
Files 767 508 -259
Lines 68803 43768 -25035
Branches 6003 0 -6003
===========================================
- Hits 40395 26738 -13657
+ Misses 24918 17030 -7888
+ Partials 3490 0 -3490
Flags with carried forward coverage won't be shown. Click here to find out more. |
c898b14
to
aa9e709
Compare
971f79d
to
300cdaf
Compare
4fb48cc
to
fc2db7a
Compare
643d24b
to
8f3fd47
Compare
af45957
to
8dc24f8
Compare
kinda don't like the UX - will update soon :P |
ea718d9
to
c91af11
Compare
res = self._connect_pop() | ||
|
||
if not res.startswith(b"+OK"): | ||
raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raising bare exception? Maybe we should log more info here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep that's intentional ..it will get caught in the try except block for retrying/regenerating access token and if it again fails then we raise an OAuthenticationError
3f595b4
to
fb7c1fc
Compare
Any reason we haven't merged this yet? What's the ETA for this? |
@harshit-30 This is my bad. Was on "kind of a break" the previous week - hence wasn't able to completely finish the pr (as you might've seen that there are some todo's pending). |
* chore: raise not implemented error for services other than gmail * chore: use fstring for _auth_string property
Since the places where connection methods are called already have a lot of exception handling, we can just raise and let them handle all the probable cases.
* keep server and port together
* minor: simplified validations for email account
* chore: rename Oauth to OAuth
01cf013
to
01a1860
Compare
Changes:
GMail
)email_id
field in email account doctypeX-Original-From
header in email body consistent and non-changable even if the user chooses to change sender name/addressUsed Oauth
inUser Email
doctype to track awaiting password emails (except the ones who've used oauth)Working:
SMTP
Screen.Recording.2022-05-30.at.3.51.26.PM.mov
IMAP
Screen.Recording.2022-05-30.at.3.54.02.PM.mov
POP3
Screen.Recording.2022-05-30.at.3.55.36.PM.mov
TODO:
User Email
doctype needs to consider this (?)will hopefully close: #14815
docs: