proxmox/proxmox-auth-api/src/api
Shannon Sterz 1b9def4736 auth-api: add logout method
adds a new endpoint that is useful when dealing with HttpOnly cookies
that cannot be removed by client-side javascript (and by extension
wasm) code. the logout handle simply removes the cookie that is used
for storing the current ticket. this works the same way as it does in
the front-end: by setting an expired cookie with the same name.

as cookies are now prefixed with `__Host-` by default, the cookie here
also needs to be `Secure` and have the same `Path` to not be rejected
by the browser before it can remove the old cookie.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
2025-03-04 15:53:29 +01:00
..
access.rs auth-api: add logout method 2025-03-04 15:53:29 +01:00
mod.rs auth-api: add logout method 2025-03-04 15:53:29 +01:00
ticket.rs add proxmox-auth-api crate 2023-03-02 16:44:35 +01:00