Skip to content

Commit

Permalink
Exclude global client from fetch all apps in ul customize
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Oct 31, 2023
1 parent 6b44681 commit 41fbf13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions internal/cli/universal_login_customize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions internal/cli/universal_login_customize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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{
{
Expand Down Expand Up @@ -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{
{
Expand Down Expand Up @@ -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{
{
Expand Down Expand Up @@ -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{
{
Expand Down Expand Up @@ -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{
{
Expand Down

0 comments on commit 41fbf13

Please sign in to comment.