rename endpoint

This commit is contained in:
mlsmaycon
2026-02-09 01:48:51 +01:00
parent 7c996ac9b5
commit 09a1d5a02d
4 changed files with 10 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ import (
"strings"
"syscall"
"github.com/netbirdio/netbird/management/server/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
@@ -220,7 +221,7 @@ func applyEmbeddedIdPConfig(ctx context.Context, cfg *nbconfig.Config) error {
cfg.HttpConfig.OIDCConfigEndpoint = issuer + "/.well-known/openid-configuration"
cfg.HttpConfig.IdpSignKeyRefreshEnabled = true
callbackURL := strings.TrimSuffix(cfg.HttpConfig.AuthIssuer, "/oauth2")
cfg.HttpConfig.AuthCallbackURL = callbackURL + "/api/oauth/callback"
cfg.HttpConfig.AuthCallbackURL = callbackURL + types.ProxyCallbackEndpoint
return nil
}