Merge branch 'main' of github.com:zitadel/oidc into zitadel-main

This commit is contained in:
David Sharnoff 2022-11-14 13:51:44 -08:00
commit fdefbf61da
3 changed files with 10 additions and 5 deletions

View file

@ -314,6 +314,9 @@ func validateAuthReqRedirectURINative(client Client, uri string, responseType oi
parsedURL, isLoopback := HTTPLoopbackOrLocalhost(uri)
isCustomSchema := !strings.HasPrefix(uri, "http://")
if str.Contains(client.RedirectURIs(), uri) {
if client.DevMode() {
return nil
}
if isLoopback || isCustomSchema {
return nil
}