[MGNLMAIL-120] Provide an OOTB implementation for using Oauth2 on Office365 account Created: 19/Nov/21  Updated: 10/Aug/22  Resolved: 10/Aug/22

Status: Closed
Project: Magnolia Mail Module
Component/s: None
Affects Version/s: 5.5.9
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLMAIL-136 CLONE - Implement OAuth 2.0 authentic... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Since Magnolia 6.1, OAuth 2.0 is supported but our current implementation works for SMTP Google account configuration. When a user tries to configure SMTP with Office365, he receives an error as follows:

java.lang.RuntimeException: com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
POST https://oauth2.googleapis.com/token
        at info.magnolia.module.mail.smtp.authentication.GoogleOauthSmtpAuthentication.getAccessToken(GoogleOauthSmtpAuthentication.java:98) ~[magnolia-module-mail-5.5.8.jar:?]

Would be nice to provide a second implementation on Mail module for being able of sending emails using Office365 accounts with OAuth 2.0


Generated at Mon Feb 12 06:03:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.