[PATCH pve-manager v3 17/23] login: Handle OAuth2 callback

Arthur Bied-Charreton
2026-04-15T07:05:06Z

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 <a.bied-charreton@proxmox.com>
---
www/manager6/Workspace.js | 2 ++
1 file changed, 2 insertions(+)

diff --git a/www/manager6/Workspace.js b/www/manager6/Workspace.js
index 0f0e6ffb..8dfa522d 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