+
+type LogoutResponse struct {
+ RedirectLocation string `json:"redirect_location,omitempty"`
+}
+
+func (resp LogoutResponse) ServeHTTP(w http.ResponseWriter, req *http.Request) {
+ w.Header().Set("Location", resp.RedirectLocation)
+ w.WriteHeader(http.StatusFound)
+}