added logging
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user