From 397d615825a7926ec8e61518e4ce17deb0aa051e Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 6 Dec 2024 23:55:31 +0000 Subject: [PATCH] fixup! Improve cookie setting. --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index b6c9986..3d5e9a9 100644 --- a/main.go +++ b/main.go @@ -187,10 +187,7 @@ func (t *TraefikOidc) VerifyJWTSignatureAndClaims(jwt *JWT, token string) error func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) { store := sessions.NewCookieStore([]byte(config.SessionEncryptionKey)) store.Options = newSessionOptions(func() bool { - if config.ForceHTTPS { - return true - } - return false + return config.ForceHTTPS }()) // Setup HTTP client