fixup! Improve cookie setting.

This commit is contained in:
2024-12-06 23:55:31 +00:00
parent 3587bb8d3e
commit 397d615825
+1 -4
View File
@@ -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