Files
wonderwall/pkg/handler/handler_logout_callback.go
2022-08-26 08:34:07 +02:00

16 lines
504 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).PostLogoutRedirectURI()
logentry.LogEntryFrom(r).Debugf("logout/callback: redirecting to %s", redirect)
http.Redirect(w, r, redirect, http.StatusTemporaryRedirect)
}