fix: allow http schema for redirect url for native apps in dev mode

This commit is contained in:
Utku Ozdemir 2022-11-11 11:39:23 +01:00
parent 0596d83b33
commit 537cf6451c
No known key found for this signature in database
GPG key ID: 65933E76F0549B0D

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
}