Skip to content

Commit

Permalink
pkg/common: allow HTTP in redirect_uri validation
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed Apr 6, 2024
1 parent c3674ce commit 59266a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func ValidateScope(resType string, scope []string) bool {
return false
}

var redirectURIRegex = regexp.MustCompile(`^https:\/\/([a-z0-9]|\.|\-|\_)*(\/[a-z0-9A-Z:@?=&%.\-_$+]+)*$`)
var redirectURIRegex = regexp.MustCompile(`^(https|http):\/\/([a-z0-9]|\.|\-|\_)*(\/[a-z0-9A-Z:@?=&%.\-_$+]+)*$`)

// ValidateRedirectURI validates a client redirect URI.
func ValidateRedirectURI(uri string) bool {
Expand Down

0 comments on commit 59266a8

Please sign in to comment.