Skip to content

Commit

Permalink
feat: add flag to skip the app launcher landing pg
Browse files Browse the repository at this point in the history
  • Loading branch information
sha-e-256 committed Jul 30, 2024
1 parent d257a3f commit ec51561
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/2793.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/access_application: add `skip_app_launcher_login_page` flag to skip the App Launcher landing page
```
11 changes: 6 additions & 5 deletions access_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,12 @@ type SaasApplication struct {
}

type AccessAppLauncherCustomization struct {
LandingPageDesign AccessLandingPageDesign `json:"landing_page_design"`
LogoURL string `json:"app_launcher_logo_url"`
HeaderBackgroundColor string `json:"header_bg_color"`
BackgroundColor string `json:"bg_color"`
FooterLinks []AccessFooterLink `json:"footer_links"`
LandingPageDesign AccessLandingPageDesign `json:"landing_page_design"`
LogoURL string `json:"app_launcher_logo_url"`
HeaderBackgroundColor string `json:"header_bg_color"`
BackgroundColor string `json:"bg_color"`
FooterLinks []AccessFooterLink `json:"footer_links"`
SkipAppLauncherLoginPage *bool `json:"skip_app_launcher_login_page,omitempty"`
}

type AccessFooterLink struct {
Expand Down
5 changes: 4 additions & 1 deletion access_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,8 @@ func TestCreateApplicationWithAccessAppLauncherCustomization(t *testing.T) {
"url": "https://somesite.com",
"name": "bug"
}
]
],
"skip_app_launcher_login_page": true
}
}
`)
Expand Down Expand Up @@ -1332,6 +1333,7 @@ func TestCreateApplicationWithAccessAppLauncherCustomization(t *testing.T) {
Name: "bug",
},
},
SkipAppLauncherLoginPage: BoolPtr(true),
},
}

Expand All @@ -1357,6 +1359,7 @@ func TestCreateApplicationWithAccessAppLauncherCustomization(t *testing.T) {
Name: "bug",
},
},
SkipAppLauncherLoginPage: BoolPtr(true),
},
})

Expand Down

0 comments on commit ec51561

Please sign in to comment.