The callback handler detects whether a login was triggered as the result of an OAuth2 redirect and handles it accordingly by sending the authorization code to the parent window. No-op on normal logins.
Signed-off-by: Arthur Bied-Charreton <[email protected]> --- www/manager6/Workspace.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/manager6/Workspace.js b/www/manager6/Workspace.js index 189d3373..44fb3979 100644 --- a/www/manager6/Workspace.js +++ b/www/manager6/Workspace.js @@ -158,6 +158,8 @@ Ext.define('PVE.StdWorkspace', { onLogin: function (loginData) { let me = this; + Proxmox.OAuth2.handleCallback(new URLSearchParams(window.location.search)); + me.updateUserInfo(); if (loginData) { -- 2.47.3
