The XOAUTH2 authorization feature for SMTP is made opt-in in proxmox-widget-toolkit. Opt into it in PBS, introducing support for XOAUTH2 in SMTP notification targets, and pass the smtp-oauth2-token endpoint URL for PBS to the SMTP edit panel for refresh token exchange.
Signed-off-by: Arthur Bied-Charreton <[email protected]> --- www/Utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/Utils.js b/www/Utils.js index bf4b025c7..837877b35 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -515,6 +515,8 @@ Ext.define('PBS.Utils', { name: 'SMTP', ipanel: 'pmxSmtpEditPanel', iconCls: 'fa-envelope-o', + enableOAuth2: true, + refreshTokenUrl: '/config/notifications/smtp-oauth2-token', defaultMailAuthor: 'Proxmox Backup Server - $hostname', }, gotify: { -- 2.47.3
