Skip to content

Commit

Permalink
Update util/oidc/oidc.go
Browse files Browse the repository at this point in the history
Better phrasing.

Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Kevin Lyda <kevin@ie.suberic.net>
  • Loading branch information
lyda and blakepettersson authored Oct 27, 2023
1 parent 6a8d15f commit 3fae415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (a *ClientApp) HandleLogin(w http.ResponseWriter, r *http.Request) {
returnURL := r.FormValue("return_url")
// Check if return_url is valid, otherwise abort processing (see https://github.com/argoproj/argo-cd/pull/4780)
if !isValidRedirectURL(returnURL, []string{a.settings.URL}) {
log.Errorf("Invalid redirect URL: %s is not a valid per the settings.", returnURL)
log.Errorf("Invalid redirect URL: %s is not a valid URL or does not match the URL in settings.", returnURL)
http.Error(w, "Invalid redirect URL: the protocol and host (including port) must match and the path must be within allowed URLs if provided", http.StatusBadRequest)
return
}
Expand Down

0 comments on commit 3fae415

Please sign in to comment.