diff --git a/handlers/redirect.go b/handlers/redirect.go index ccedb7b..60fe2c8 100644 --- a/handlers/redirect.go +++ b/handlers/redirect.go @@ -1,6 +1,7 @@ package handlers import ( + "log" "os" "strings" ) @@ -13,9 +14,10 @@ func IsAllowedRedirectURI(uri string) bool { allowedRedirectURIs := strings.Split(allowedRedirectURIsEnv, ",") for _, allowed := range allowedRedirectURIs { - if uri == strings.TrimSpace(allowed) { // Exact match only + if uri == strings.TrimSpace(allowed) { return true } } + log.Print("Redirect URI not allowed: ", uri) return false }