mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 10:33:40 +01:00
Confirm local sign-out before proxy navigation
End the browser session and clear saved state before the configured provider redirect; keep failed or uncertain withdrawal visible and retry deliberate. Preserve normal credential and CSRF transport, independent tokens and administrator recovery. Contract-Neutral: Repair the existing sign-out client sequence and feedback; no API, grant, provider protocol, route, storage/recovery, AI or polling contract delta. Change-source: pulse-maintainer
This commit is contained in:
@@ -128,14 +128,17 @@ Proxy authentication is checked on each request. If the authenticating proxy
|
||||
still supplies a valid identity, Pulse can admit that user again without a
|
||||
local password prompt.
|
||||
|
||||
- **With `PROXY_AUTH_LOGOUT_URL`:** Pulse's **Sign out** action sends the browser
|
||||
directly to that URL, instead of calling Pulse's local `/api/logout` endpoint.
|
||||
- **With `PROXY_AUTH_LOGOUT_URL`:** Pulse's **Sign out** action first calls
|
||||
Pulse's local `/api/logout` endpoint. Only after Pulse confirms success and
|
||||
clears this browser's saved authentication and cached metadata does it send
|
||||
the browser to that URL. A refused request, lost response or browser-cleanup
|
||||
error is shown instead of a redirect; it does not confirm withdrawn access.
|
||||
The destination must perform the required logout in your existing proxy/IdP
|
||||
integration; simply opening a login page or returning to Pulse does not end
|
||||
either upstream session. Some integrations have separate proxy and IdP
|
||||
sessions, so an active IdP session can sign the user straight back in.
|
||||
- **Without that URL:** Pulse uses its local logout endpoint and leaves the
|
||||
proxy/IdP sessions alone. Ending one Pulse browser session does not revoke
|
||||
- **Without that URL:** Pulse uses the same confirmed local logout and browser
|
||||
cleanup, returns to its login page and leaves the proxy/IdP sessions alone. Ending one Pulse browser session does not revoke
|
||||
other browser sessions, API tokens or the shared proxy secret.
|
||||
|
||||
Use the logout route documented for your installed authenticating proxy and its
|
||||
|
||||
@@ -3935,3 +3935,26 @@ Chat)"), not as a Pro capability, so no paid entitlement changes. Paid Patrol
|
||||
capabilities stay as they were: Patrol modes, investigations, governed fixes,
|
||||
and history live on the Patrol and Actions surfaces, and alert Investigate now
|
||||
starts a targeted Patrol run instead of opening a chat.
|
||||
|
||||
### Sign-out confirms local withdrawal before provider navigation
|
||||
|
||||
The existing app runtime sends a single bounded, cookie/CSRF-bearing POST to
|
||||
`/api/logout` before clearing saved authentication and cached metadata, stopping
|
||||
its runtime and following any configured proxy/SSO destination. It requires the
|
||||
endpoint's successful JSON acknowledgement; rejection, a redirect, malformed
|
||||
reply, lost response or timeout stays visibly uncertain and allows deliberate
|
||||
retry. The API client must not turn a logout 401 into a success-looking login
|
||||
redirect. Token-only browsers keep the normal authenticated transport; this
|
||||
ends only the cookie session, not independent API tokens or other sessions.
|
||||
Provider navigation still owns upstream sign-out. A browser cleanup failure
|
||||
remains explicit, does not skip remaining cleanup and does not redirect.
|
||||
|
||||
The actual Layout control is busy/disabled during withdrawal. Disposing its
|
||||
runtime aborts pending transport and prevents late cleanup/navigation. No new
|
||||
route, polling, grant, provider protocol, server invalidation rule or recovery
|
||||
operation is introduced. Registered runtime, API-client auth and AppLayout
|
||||
tests cover order, uncertainty, transport, duplicate attempts, retry, timeout,
|
||||
disposal and storage failure. Desktop/narrow browser proof exercises the actual
|
||||
consumer with synthetic independent sessions and inspected pixels; it is not
|
||||
live IdP or original administrator recovery. The proxy guide and shipped mirror
|
||||
must describe the same sequence without claiming upstream revocation.
|
||||
|
||||
@@ -4654,3 +4654,26 @@ usage and `Dialog.test.tsx` owns modal isolation/focus. Browser proof exercises
|
||||
the consuming TrueNAS table with ordinary keyboard/phone taps, hover parity,
|
||||
updates and dismissal, and natively inspected desktop/narrow pixels. This repairs
|
||||
composition access, not the reporter's missing native ARC or I/O/History source.
|
||||
|
||||
### Sign-out confirms local withdrawal before provider navigation
|
||||
|
||||
The existing app runtime sends a single bounded, cookie/CSRF-bearing POST to
|
||||
`/api/logout` before clearing saved authentication and cached metadata, stopping
|
||||
its runtime and following any configured proxy/SSO destination. It requires the
|
||||
endpoint's successful JSON acknowledgement; rejection, a redirect, malformed
|
||||
reply, lost response or timeout stays visibly uncertain and allows deliberate
|
||||
retry. The API client must not turn a logout 401 into a success-looking login
|
||||
redirect. Token-only browsers keep the normal authenticated transport; this
|
||||
ends only the cookie session, not independent API tokens or other sessions.
|
||||
Provider navigation still owns upstream sign-out. A browser cleanup failure
|
||||
remains explicit, does not skip remaining cleanup and does not redirect.
|
||||
|
||||
The actual Layout control is busy/disabled during withdrawal. Disposing its
|
||||
runtime aborts pending transport and prevents late cleanup/navigation. No new
|
||||
route, polling, grant, provider protocol, server invalidation rule or recovery
|
||||
operation is introduced. Registered runtime, API-client auth and AppLayout
|
||||
tests cover order, uncertainty, transport, duplicate attempts, retry, timeout,
|
||||
disposal and storage failure. Desktop/narrow browser proof exercises the actual
|
||||
consumer with synthetic independent sessions and inspected pixels; it is not
|
||||
live IdP or original administrator recovery. The proxy guide and shipped mirror
|
||||
must describe the same sequence without claiming upstream revocation.
|
||||
|
||||
Reference in New Issue
Block a user