From a314c1483fc866ccf5850ccf2b06a8a57d900609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Utku=20=C3=96zdemir?= Date: Mon, 14 Nov 2022 16:59:56 +0100 Subject: [PATCH] fix: allow http schema for redirect url for native apps in dev mode (#242) --- pkg/op/auth_request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/op/auth_request.go b/pkg/op/auth_request.go index 9dc07d2..d8c960e 100644 --- a/pkg/op/auth_request.go +++ b/pkg/op/auth_request.go @@ -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 }