From 41fbf13a1f9cb03d471385e4f64401932bd27e57 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:58:26 +0100 Subject: [PATCH] Exclude global client from fetch all apps in ul customize --- internal/cli/universal_login_customize.go | 1 + internal/cli/universal_login_customize_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/cli/universal_login_customize.go b/internal/cli/universal_login_customize.go index 2377747fd..32940c0bd 100644 --- a/internal/cli/universal_login_customize.go +++ b/internal/cli/universal_login_customize.go @@ -575,6 +575,7 @@ func fetchAllApplications(ctx context.Context, api *auth0.API) ([]*applicationDa ctx, management.Page(page), management.PerPage(100), + management.Parameter("is_global", "false"), management.IncludeFields("client_id", "name", "logo_uri", "client_metadata"), ) if err != nil { diff --git a/internal/cli/universal_login_customize_test.go b/internal/cli/universal_login_customize_test.go index a94469c1f..1699a1f88 100644 --- a/internal/cli/universal_login_customize_test.go +++ b/internal/cli/universal_login_customize_test.go @@ -172,7 +172,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ { @@ -320,7 +320,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ { @@ -472,7 +472,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ { @@ -627,7 +627,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ { @@ -840,7 +840,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ { @@ -919,7 +919,7 @@ func TestFetchUniversalLoginBrandingData(t *testing.T) { mockClientAPI := mock.NewMockClientAPI(ctrl) mockClientAPI. EXPECT(). - List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). + List(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()). Return(&management.ClientList{ Clients: []*management.Client{ {