http: logout — 303 to end_session_endpoint with id_token_hint for OIDC sessions
This commit is contained in:
@@ -137,10 +137,12 @@ func (s *Server) routes(r chi.Router) {
|
||||
r.Get("/ws/agent/pending", s.handlePendingWS)
|
||||
r.Mount("/static/", staticHandler())
|
||||
|
||||
// POST /logout is always mounted — it handles both local and OIDC
|
||||
// sessions and doesn't require the UI renderer.
|
||||
r.Post("/logout", s.handleUILogoutPost)
|
||||
if s.deps.UI != nil {
|
||||
r.Get("/login", s.handleUILoginGet)
|
||||
r.Post("/login", s.handleUILoginPost)
|
||||
r.Post("/logout", s.handleUILogoutPost)
|
||||
r.Get("/setup", s.handleUISetupGet)
|
||||
r.Post("/setup", s.handleUISetupPost)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user