fix: allow http schema for redirect url for native apps in dev mode (#242)
This commit is contained in:
parent
1aa75ec953
commit
a314c1483f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue