feat: add option to disable continue screen

This commit is contained in:
Stavros
2025-01-24 18:16:23 +02:00
parent 085b1492cc
commit c59aaa5600
6 changed files with 87 additions and 60 deletions

View File

@@ -208,6 +208,7 @@ func (api *API) SetupRoutes() {
"oauth": false,
"provider": "",
"configuredProviders": api.Providers.GetConfiguredProviders(),
"disableContinue": api.Config.DisableContinue,
})
return
}
@@ -220,6 +221,7 @@ func (api *API) SetupRoutes() {
"oauth": userContext.OAuth,
"provider": userContext.Provider,
"configuredProviders": api.Providers.GetConfiguredProviders(),
"disableContinue": api.Config.DisableContinue,
})
})

View File

@@ -36,6 +36,7 @@ type Config struct {
GenericAuthURL string `mapstructure:"generic-auth-url"`
GenericTokenURL string `mapstructure:"generic-token-url"`
GenericUserInfoURL string `mapstructure:"generic-user-info-url"`
DisableContinue bool `mapstructure:"disable-continue"`
}
type UserContext struct {
@@ -46,11 +47,12 @@ type UserContext struct {
}
type APIConfig struct {
Port int
Address string
Secret string
AppURL string
CookieSecure bool
Port int
Address string
Secret string
AppURL string
CookieSecure bool
DisableContinue bool
}
type OAuthConfig struct {