From: Shannon Sterz <s.sterz@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/1] ui: login: opt the tfa challenge handling into the new HttpOnly flow
Date: Wed, 6 Aug 2025 11:57:02 +0200 [thread overview]
Message-ID: <20250806095702.135277-3-s.sterz@proxmox.com> (raw)
In-Reply-To: <20250806095702.135277-1-s.sterz@proxmox.com>
this was missed previously leading to the tfa part of the auth flow
not opting into the new auth flow. this meant the server did not add a
Set-Cookie header. after that whether or not a login worked fine
became a race between the refresh logic (which was opted into the new
flow and, thus, would yield a proper HttpOnly cookie) and other
requests.
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
www/LoginView.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/LoginView.js b/www/LoginView.js
index 9c1ac38a..cf6c2cf7 100644
--- a/www/LoginView.js
+++ b/www/LoginView.js
@@ -114,6 +114,7 @@ Ext.define('PBS.LoginView', {
let userid = data.username;
let ticket = data.ticket;
+ let http_only = true;
let challenge = JSON.parse(
decodeURIComponent(ticket.split(':')[1].slice('!tfa!'.length)),
);
@@ -123,6 +124,7 @@ Ext.define('PBS.LoginView', {
userid,
ticket,
challenge,
+ http_only,
onResolve: (value) => resolve(value),
onReject: reject,
}).show();
--
2.47.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2025-08-06 9:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-06 9:57 [pbs-devel] [PATCH proxmox-backup/widget-toolkit 0/2] opt PBS into the new HttpOnly flow for TFA challenges Shannon Sterz
2025-08-06 9:57 ` [pbs-devel] [PATCH widget-toolkit 1/1] tfa window: allow opting into the new http only flow for tfa challenges Shannon Sterz
2025-08-06 10:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-08-06 10:04 ` [pve-devel] applied: [pbs-devel] " Thomas Lamprecht
2025-08-06 9:57 ` Shannon Sterz [this message]
2025-08-06 10:09 ` [pbs-devel] [PATCH proxmox-backup 1/1] ui: login: opt the tfa challenge handling into the new HttpOnly flow Thomas Lamprecht
2025-08-06 10:20 ` Shannon Sterz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250806095702.135277-3-s.sterz@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.