public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH yew-comp 0/2] make http wasm client get fresh csrf tokens from index document
@ 2025-12-17 14:26 Shannon Sterz
  2025-12-17 14:26 ` [yew-devel] [PATCH yew-comp 1/2] http wasm client: load csrf token from global Proxmox object Shannon Sterz
  2025-12-17 14:26 ` [yew-devel] [PATCH yew-comp 2/2] http wasm client: refactor extract_auth_from_cookie to return a Ticket Shannon Sterz
  0 siblings, 2 replies; 3+ messages in thread
From: Shannon Sterz @ 2025-12-17 14:26 UTC (permalink / raw)
  To: yew-devel

this series makes the http wasm client respect the fresher csrf token
in the document index. fixing a bug that would kick out users after
the first non-GET request. for a more detailed explanation see patch
1.

changes since v1:

* split csrf token portion of extract_auth_from_cookie into a separate
  function and add better documentation (thanks @ Thomas Lamprecht)
* add a patch that refactors extract_auth_from_cookie to return a
  ticket and be more efficient and legible.

Shannon Sterz (2):
  http wasm client: load csrf token from global Proxmox object
  http wasm client: refactor extract_auth_from_cookie to return a Ticket

 src/http_client_wasm.rs | 54 ++++++++++++++++++++++++++---------------
 1 file changed, 35 insertions(+), 19 deletions(-)

--
2.47.3



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-17 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 14:26 [yew-devel] [PATCH yew-comp 0/2] make http wasm client get fresh csrf tokens from index document Shannon Sterz
2025-12-17 14:26 ` [yew-devel] [PATCH yew-comp 1/2] http wasm client: load csrf token from global Proxmox object Shannon Sterz
2025-12-17 14:26 ` [yew-devel] [PATCH yew-comp 2/2] http wasm client: refactor extract_auth_from_cookie to return a Ticket Shannon Sterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal