Skip to content

Commit

Permalink
fix: add missing ctx argument to IsRedirectURISecureStrict
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jan 26, 2024
1 parent f411487 commit b9c70d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authorize_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func IsRedirectURISecure(ctx context.Context, redirectURI *url.URL) bool {
// IsRedirectURISecureStrict is stricter than IsRedirectURISecure and it does not allow custom-scheme
// URLs because they can be hijacked for native apps. Use claimed HTTPS redirects instead.
// See discussion in https://github.com/ory/fosite/pull/489.
func IsRedirectURISecureStrict(redirectURI *url.URL) bool {
func IsRedirectURISecureStrict(ctx context.Context, redirectURI *url.URL) bool {
return redirectURI.Scheme == "https" || (redirectURI.Scheme == "http" && IsLocalhost(redirectURI))
}

Expand Down

0 comments on commit b9c70d3

Please sign in to comment.