mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
Desimone/authenticate default logout (#1390)
* authenticate: fix unset post_logout_redirect_uri * don't show url if does not exist Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
1fcd86120b
commit
05d9fbb4b3
3 changed files with 4 additions and 3 deletions
|
@ -290,7 +290,7 @@ func (a *Authenticate) SignOut(w http.ResponseWriter, r *http.Request) error {
|
|||
}
|
||||
|
||||
endSessionURL, err := a.provider.Load().LogOut()
|
||||
if err == nil {
|
||||
if err == nil && redirectString != "" {
|
||||
params := url.Values{}
|
||||
params.Add("post_logout_redirect_uri", redirectString)
|
||||
endSessionURL.RawQuery = params.Encode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue