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:
Jens Langhammer 2023-02-15 10:50:01 +01:00
parent c8c401e2c5
commit d945d30cda
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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,
}