Oauth (Section)#

Path: /facilities/email-providers/email-provider/smtp/oauth

Authenticate to the SMTP server using an OAuth 2.0 client-credentials access token via the XOAUTH2 SASL mechanism.

Parameters#

NameTypeRequiredDefaultDescription
client-idstring (length: 1..9223372036854775807)required-The client id to use when obtaining an OAuth 2.0 access token
scopemulti-value stringoptional-Scopes to request when obtaining a new access token from the OAuth 2.0 server
token-expiration-time-skewuint16optional10Time skew when considering whether a token should be considered to be expired (e.g. if 10 seconds and the token expires in 9 seconds, the token will be considered expired)
http-clientleafref → /base:facilities/base:http/base:client/base:idrequired-The HTTP client used to perform the OAuth 2.0 token requests

Subsections#

NameTypeDescription
token-endpoint-resolutionOneOfHow the OAuth 2.0 token endpoint is determined. Currently only a directly configured token endpoint URL is supported; additional resolution methods (e.g. discovery via authorization-server / OpenID Provider metadata) may be added as further cases in the future.
credentialOneOfHow the client authenticates to the OAuth 2.0 token endpoint. Currently only a client secret is supported.

Was this helpful?