[pdm-devel] [PATCH datacenter-manager v5 21/21] api: switch ticket endpoint over to new http only endpoint

Shannon Sterz s.sterz at proxmox.com
Tue Mar 4 15:42:47 CET 2025


also adds a delete method for remove "__Host-"-prefixed HttpOnly
cookies.

Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
 server/src/api/access/mod.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/src/api/access/mod.rs b/server/src/api/access/mod.rs
index 738d382..befe2f1 100644
--- a/server/src/api/access/mod.rs
+++ b/server/src/api/access/mod.rs
@@ -29,7 +29,9 @@ const SUBDIRS: SubdirMap = &sorted!([
     ("tfa", &tfa::ROUTER),
     (
         "ticket",
-        &Router::new().post(&proxmox_auth_api::api::API_METHOD_CREATE_TICKET),
+        &Router::new()
+            .post(&proxmox_auth_api::api::API_METHOD_CREATE_TICKET_HTTP_ONLY)
+            .delete(&proxmox_auth_api::api::API_METHOD_LOGOUT),
     ),
     ("users", &users::ROUTER),
 ]);
-- 
2.39.5





More information about the pdm-devel mailing list