mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-09 18:06:42 +00:00
16 lines
517 B
Go
16 lines
517 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
logentry "github.com/nais/wonderwall/pkg/middleware"
|
|
)
|
|
|
|
// LogoutCallback handles the callback initiated by the self-initiated logout after single-logout at the identity provider.
|
|
func (h *Handler) LogoutCallback(w http.ResponseWriter, r *http.Request) {
|
|
redirect := h.Client.LogoutCallback(r, h.Config.Ingress).PostLogoutRedirectURI()
|
|
|
|
logentry.LogEntry(r).Infof("logout/callback: redirecting to %s", redirect)
|
|
http.Redirect(w, r, redirect, http.StatusTemporaryRedirect)
|
|
}
|