mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-18 04:47:28 +00:00
fixup! Improve cookie setting.
This commit is contained in:
@@ -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) {
|
func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {
|
||||||
store := sessions.NewCookieStore([]byte(config.SessionEncryptionKey))
|
store := sessions.NewCookieStore([]byte(config.SessionEncryptionKey))
|
||||||
store.Options = newSessionOptions(func() bool {
|
store.Options = newSessionOptions(func() bool {
|
||||||
if config.ForceHTTPS {
|
return config.ForceHTTPS
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}())
|
}())
|
||||||
|
|
||||||
// Setup HTTP client
|
// Setup HTTP client
|
||||||
|
|||||||
Reference in New Issue
Block a user