diff options
author | Kassio Borges <kborges@gitlab.com> | 2022-11-03 11:29:35 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2022-11-03 11:29:35 +0300 |
commit | 5f51016111a64f54272eb40383467c8a45876fae (patch) | |
tree | f8b30898d4d58f1d23da501163b7f15e9acd3c0f /app.go | |
parent | 9759fdf494816a1a42b8b3590dde9f74b0aec76e (diff) |
Add auth-cookie-session-timeout flag
Related to: https://gitlab.com/gitlab-org/gitlab-pages/-/issues/806
Changelog: added
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -391,7 +391,8 @@ func (a *theApp) setAuth(config *cfg.Config) error { var err error a.Auth, err = auth.New(config.General.Domain, config.Authentication.Secret, config.Authentication.ClientID, config.Authentication.ClientSecret, - config.Authentication.RedirectURI, config.GitLab.InternalServer, config.GitLab.PublicServer, config.Authentication.Scope, config.Authentication.Timeout) + config.Authentication.RedirectURI, config.GitLab.InternalServer, config.GitLab.PublicServer, config.Authentication.Scope, + config.Authentication.Timeout, config.Authentication.CookieSessionTimeout) if err != nil { return fmt.Errorf("could not initialize auth package: %w", err) } |