authenticate: save the session cookie with a different name (#3978)

This commit is contained in:
Caleb Doxsey 2023-02-16 08:52:18 -07:00 committed by github-actions[bot]
parent 3eaa60948c
commit 678bae20b5

View file

@ -96,7 +96,7 @@ func newAuthenticateStateFromConfig(cfg *config.Config) (*authenticateState, err
cookieStore, err := cookie.NewStore(func() cookie.Options { cookieStore, err := cookie.NewStore(func() cookie.Options {
return cookie.Options{ return cookie.Options{
Name: cfg.Options.CookieName, Name: cfg.Options.CookieName + "_authenticate",
Domain: cfg.Options.CookieDomain, Domain: cfg.Options.CookieDomain,
Secure: cfg.Options.CookieSecure, Secure: cfg.Options.CookieSecure,
HTTPOnly: cfg.Options.CookieHTTPOnly, HTTPOnly: cfg.Options.CookieHTTPOnly,