Package io.jmix.email

Class EmailerProperties.OAuth2

java.lang.Object
io.jmix.email.EmailerProperties.OAuth2
Enclosing class:
EmailerProperties

public static class EmailerProperties.OAuth2 extends Object
  • Field Details

    • enabled

      protected final boolean enabled
      Whether the OAuth2 authentication is enabled
    • provider

      protected final String provider
      Name of SMTP server provider.

      Available values: google, microsoft

    • clientId

      protected final String clientId
      Client id of application to connect via OAuth2
    • secret

      protected final String secret
      Secret of application to connect via OAuth2
    • refreshToken

      protected final String refreshToken
      Refresh token value to get access token. This value will be used if no refresh token is stored in database.
    • tenantId

      protected final String tenantId
      Tenant id used to connect to application provided by Microsoft
  • Constructor Details

    • OAuth2

      public OAuth2(@DefaultValue("false") boolean enabled, @DefaultValue("google") String provider, @DefaultValue("client") String clientId, @DefaultValue("secret") String secret, @DefaultValue("") String refreshToken, @DefaultValue("common") String tenantId)
  • Method Details