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:
parent
c8c401e2c5
commit
d945d30cda
|
@ -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 a new issue