Configuring e-mail listeners for OAuth 2.0

As a system administrator, you can configure e-mail listeners to use OAuth 2.0 for cloud-based e-mail providers that also use OAuth 2.0.

Before you begin

Ensure that the version of the JavaMail API that is included in your Java™ 2 Platform, Enterprise Edition application server is version 1.5.2 or later. Earlier versions do not support 0Auth 2.0. If 0Auth 2.0 is selected in the e-mail listener but is not supported by the API, the IMAP protocol is used instead.

About this task

When you configure OAuth2.0 for an e-mail listener, you specify information for the e-mail address and provider. A limited-lifespan access token is automatically obtained by using that information. The life of the token is typically 1 hour, and a new token is obtained when the prior token expires.

Procedure

  1. In the E-Mail Listeners application, open the e-mail listener.
  2. In the Protocol field, select oauth.
  3. In the OAuth 2.0 Configuration section, specify the relevant information. Review the documentation for your e-mail provider to determine how to retrieve the information.
    1. In the Client ID field, specify the client ID.
    2. In the Client Secret field, specify the client secret.
    3. In the Refresh Token field, specify the refresh token for the e-mail address.
    4. In the Token URL field, specify the access token URL for the e-mail provider.