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#
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| client-id | string (length: 1..9223372036854775807) | required | - | The client id to use when obtaining an OAuth 2.0 access token |
| scope | multi-value string | optional | - | Scopes to request when obtaining a new access token from the OAuth 2.0 server |
| token-expiration-time-skew | uint16 | optional | 10 | Time 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-client | leafref → /base:facilities/base:http/base:client/base:id | required | - | The HTTP client used to perform the OAuth 2.0 token requests |
Subsections#
| Name | Type | Description |
|---|---|---|
| token-endpoint-resolution | OneOf | How 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. |
| credential | OneOf | How the client authenticates to the OAuth 2.0 token endpoint. Currently only a client secret is supported. |