Skip to main content

SSE_TICKET_PATH

Constant SSE_TICKET_PATH 

Source
pub const SSE_TICKET_PATH: &str = "/auth/sse-ticket";
Expand description

POST here (authenticated) to mint a single-use SSE ticket.

Why: EventSource cannot send an Authorization header, so a browser client exchanges its credential for a ticket here and puts THAT in the SSE URL — see trusty_common::server::bearer_auth’s module docs.