-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[ADD] {google,fetchmail}_gmail: OAuth for gmail servers #64213
Conversation
00393b5
to
4432dcf
Compare
4432dcf
to
40b1cbb
Compare
c2b44a6
to
d89c925
Compare
d67cd2d
to
bddfdbd
Compare
bddfdbd
to
6809c23
Compare
Is this going to work for Microsoft Office 365 incoming emails as well as Gmail? Microsoft Office 365 is also switching to "Modern Authentication" (i.e. forcing everyone to use OAUTH 2.0 starting in 2021). Our company's Microsoft Office 365 service requires "modern authentication" already, so Odoo incoming email does not work for us. |
Wouldn't it be better Does it really make sense to ship it in a separate module instead of integrating into |
@yajo Hi :) We have some custom code for gmail, like default settings, specific view, the URL to which the user is redirected for the authentication, also the endpoints are not the same, we use a google mixin, etc.. To much thing "google specific" IMO. Generally we prefer to do 1 module per "media", it's easier to maintain (except if we found a stoing argument to merge both "media" in 1 module, but I don't think it will be the case). But some code can be re-used like |
6809c23
to
a3cabe2
Compare
a3cabe2
to
0d14661
Compare
279c175
to
1d34d58
Compare
1d34d58
to
f25e451
Compare
f25e451
to
72c8228
Compare
1e23e1e
to
1875b97
Compare
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.
Validation ! Read the diff, seems quite short in the end, cool :) added some comments notably to try to improve google.service usage and modularity :)
Cheers !
e323cfc
to
2ad3e5f
Compare
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.
@tde-banana-odoo Hi :)
I made the changes and answered to your questions
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.
Blourtch !
2ad3e5f
to
113f0de
Compare
By the way, could be great to have a review from @odony as he is able to send emails directly from his brain. And to check if we are doing thinkgs like we should. Cheers ! |
efaa8df
to
fe701fb
Compare
Purpose ======= Less secured apps are no longer supported by google, therefore, we need to transition to the OAuth2 authentication system. Specifications ============== On the external server configuration in the main settings, users will have to activate Gmail support. Then, on incoming / outgoing mail servers forms, they will have to click that will redirect them to Gmail, where they will accept the permission of the application. When, they will copy / paste the token in the Odoo email server form view. This token is used in replacement of their password. Task-2170676
fe701fb
to
2420fce
Compare
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.
@robodoo override=ci/security
Reason: request on gmail servers using the API
Looks good on the feature :)
Master change will be merged in: #83413 |
Purpose
Less secured apps are no longer supported by google, therefore, we need
to transition to the OAuth2 authentication system.
Specifications
On the external server configuration in the main settings, users will
have to activate Gmail support.
Then, on incoming / outgoing mail servers forms, they will have to
introduce an authorization code that they will have fetched via a link
on the form.
Task-2170676