commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Grossetie (JIRA)" <>
Subject [jira] [Created] (EMAIL-163) Support for OAuth2 authentication
Date Tue, 12 Apr 2016 21:35:25 GMT
Guillaume Grossetie created EMAIL-163:

             Summary: Support for OAuth2 authentication
                 Key: EMAIL-163
             Project: Commons Email
          Issue Type: New Feature
    Affects Versions: 1.4
            Reporter: Guillaume Grossetie

Starting with JavaMail 1.5.5, support for OAuth2 authentication is built-in and no longer
requires SASL (although the SASL OAuth2 support continues to work).

It would be great if commons email could provide an API to support OAuth2 authentification.

The following code should be integrated in {{Email.getMailSession}}:

if (isOAuth2Authentication()) {
  props.put("mail.smtp.auth.mechanisms", "XOAUTH2");

Or a generic solution:
if (this.authMechanisms != null) {
  props.put("mail.smtp.auth.mechanisms", this.authMechanisms);

This message was sent by Atlassian JIRA

View raw message