added logging

This commit is contained in:
2026-01-07 15:32:30 +08:00
parent 78c384055b
commit 2f1debaa96
+3 -1
View File
@@ -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
}