providers/proxy: fix value is too long with filesystem sessions
closes #4693 Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package codecs
|
||||
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/gorilla/securecookie"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
@ -12,6 +14,7 @@ type Codec struct {
|
||||
func New(maxAge int, hashKey, blockKey []byte) *Codec {
|
||||
cookie := securecookie.New(hashKey, blockKey)
|
||||
cookie.MaxAge(maxAge)
|
||||
cookie.MaxLength(math.MaxInt)
|
||||
return &Codec{
|
||||
SecureCookie: cookie,
|
||||
}
|
||||
|
Reference in New Issue
Block a user