From 36cd0dd85c20d2f79d6cfdcf7f01721b4c3a3cd8 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Mon, 9 Feb 2026 02:10:21 +0100 Subject: [PATCH] temp fix import cycle --- management/server/idp/embedded.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/server/idp/embedded.go b/management/server/idp/embedded.go index e6586310a..8ab4ce0dc 100644 --- a/management/server/idp/embedded.go +++ b/management/server/idp/embedded.go @@ -9,7 +9,6 @@ import ( "github.com/dexidp/dex/storage" "github.com/google/uuid" - "github.com/netbirdio/netbird/management/server/types" log "github.com/sirupsen/logrus" "github.com/netbirdio/netbird/idp/dex" @@ -95,7 +94,8 @@ func (c *EmbeddedIdPConfig) ToYAMLConfig() (*dex.YAMLConfig, error) { // Build dashboard redirect URIs including the OAuth callback for proxy authentication dashboardRedirectURIs := c.DashboardRedirectURIs baseURL := strings.TrimSuffix(c.Issuer, "/oauth2") - dashboardRedirectURIs = append(dashboardRedirectURIs, baseURL+types.ProxyCallbackEndpoint) + // todo: resolve import cycle + dashboardRedirectURIs = append(dashboardRedirectURIs, baseURL+"/api/reverse-proxy/callback") cfg := &dex.YAMLConfig{ Issuer: c.Issuer,