Package io.jmix.email
Class EmailerProperties.OAuth2
java.lang.Object
io.jmix.email.EmailerProperties.OAuth2
- Enclosing class:
EmailerProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringClient id of application to connect via OAuth2.protected final booleanWhether the OAuth2 authentication is enabledprotected final StringName of SMTP server provider.protected final StringRedirect URI used by the authorization code flow when connecting a mailbox account.protected final StringInitial refresh token value used to get access token.protected final StringSecret of application to connect via OAuth2.protected final StringTenant id used to connect to application provided by Microsoft -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enabled
protected final boolean enabledWhether the OAuth2 authentication is enabled -
provider
Name of SMTP server provider. Required when OAuth2 authentication is enabled, unless a customOAuth2TokenProviderbean is defined by the application.Available values: google, microsoft
-
clientId
Client id of application to connect via OAuth2. Required when OAuth2 authentication is enabled. -
secret
Secret of application to connect via OAuth2. Required when OAuth2 authentication is enabled. -
refreshToken
Initial refresh token value used to get access token. This value is used only while no refresh token is stored in the database. Once a token is stored (via the email connection view or automatically after provider-side token rotation), the stored value takes precedence. -
tenantId
Tenant id used to connect to application provided by Microsoft -
redirectUri
Redirect URI used by the authorization code flow when connecting a mailbox account. If not set, the URI is derived from the current request. Set it explicitly when the application is behind a reverse proxy and the derived URI is wrong. The value must be registered as a redirect URI of the OAuth client.
-
-
Constructor Details
-
OAuth2
-
-
Method Details
-
isEnabled
public boolean isEnabled()- See Also:
-
getProvider
- See Also:
-
getClientId
- See Also:
-
getSecret
- See Also:
-
getRefreshToken
- See Also:
-
getTenantId
- See Also:
-
getRedirectUri
- See Also:
-