Skip to content

Commit

Permalink
fix: Use host if post_logout_redirect_url not set (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycs authored Jun 16, 2022
1 parent 60b82ec commit 7a504d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (h *LogoutHandler) redirect(w http.ResponseWriter, r *http.Request, idToken
}

post_logout_redirect_url := h.auth.conf.PostLogoutRedirectURL
if post_logout_redirect_url != "" {
if post_logout_redirect_url == "" {
post_logout_redirect_url = r.Host
}
query := redirectURL.Query()
Expand Down

0 comments on commit 7a504d6

Please sign in to comment.