mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-12 00:27:35 +02:00
This reverts commit d9cc26a2e0
.
This commit is contained in:
parent
c71f7dca5b
commit
51655a5502
3 changed files with 0 additions and 6 deletions
|
@ -5,7 +5,6 @@ import (
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
|
@ -118,7 +117,6 @@ func newAuthenticateStateFromConfig(cfg *config.Config) (*authenticateState, err
|
||||||
Secure: cfg.Options.CookieSecure,
|
Secure: cfg.Options.CookieSecure,
|
||||||
HTTPOnly: cfg.Options.CookieHTTPOnly,
|
HTTPOnly: cfg.Options.CookieHTTPOnly,
|
||||||
Expire: cfg.Options.CookieExpire,
|
Expire: cfg.Options.CookieExpire,
|
||||||
SameSite: http.SameSiteLaxMode,
|
|
||||||
}
|
}
|
||||||
}, state.sharedEncoder)
|
}, state.sharedEncoder)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -42,7 +42,6 @@ type Options struct {
|
||||||
Expire time.Duration
|
Expire time.Duration
|
||||||
HTTPOnly bool
|
HTTPOnly bool
|
||||||
Secure bool
|
Secure bool
|
||||||
SameSite http.SameSite
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// A GetOptionsFunc is a getter for cookie options.
|
// A GetOptionsFunc is a getter for cookie options.
|
||||||
|
@ -93,7 +92,6 @@ func (cs *Store) makeCookie(value string) *http.Cookie {
|
||||||
HttpOnly: opts.HTTPOnly,
|
HttpOnly: opts.HTTPOnly,
|
||||||
Secure: opts.Secure,
|
Secure: opts.Secure,
|
||||||
Expires: timeNow().Add(opts.Expire),
|
Expires: timeNow().Add(opts.Expire),
|
||||||
SameSite: opts.SameSite,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ package proxy
|
||||||
import (
|
import (
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"net/http"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
@ -86,7 +85,6 @@ func newProxyStateFromConfig(cfg *config.Config) (*proxyState, error) {
|
||||||
Secure: cfg.Options.CookieSecure,
|
Secure: cfg.Options.CookieSecure,
|
||||||
HTTPOnly: cfg.Options.CookieHTTPOnly,
|
HTTPOnly: cfg.Options.CookieHTTPOnly,
|
||||||
Expire: cfg.Options.CookieExpire,
|
Expire: cfg.Options.CookieExpire,
|
||||||
SameSite: http.SameSiteLaxMode,
|
|
||||||
}
|
}
|
||||||
}, state.encoder)
|
}, state.encoder)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue