mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
parent
3d7206dc1e
commit
9de99d0211
8 changed files with 63 additions and 34 deletions
|
@ -281,7 +281,14 @@ func (a *Authenticate) SignOut(w http.ResponseWriter, r *http.Request) error {
|
|||
|
||||
// no matter what happens, we want to clear the session store
|
||||
state.sessionStore.ClearSession(w, r)
|
||||
redirectString := r.FormValue(urlutil.QueryRedirectURI)
|
||||
redirectString := ""
|
||||
if sru := a.options.Load().SignOutRedirectURL; sru != nil {
|
||||
redirectString = sru.String()
|
||||
}
|
||||
if uri := r.FormValue(urlutil.QueryRedirectURI); uri != "" {
|
||||
redirectString = uri
|
||||
}
|
||||
|
||||
endSessionURL, err := a.provider.Load().LogOut()
|
||||
if err == nil {
|
||||
params := url.Values{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue