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 | package codecs | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
|  | 	"math" | ||||||
|  |  | ||||||
| 	"github.com/gorilla/securecookie" | 	"github.com/gorilla/securecookie" | ||||||
| 	log "github.com/sirupsen/logrus" | 	log "github.com/sirupsen/logrus" | ||||||
| ) | ) | ||||||
| @ -12,6 +14,7 @@ type Codec struct { | |||||||
| func New(maxAge int, hashKey, blockKey []byte) *Codec { | func New(maxAge int, hashKey, blockKey []byte) *Codec { | ||||||
| 	cookie := securecookie.New(hashKey, blockKey) | 	cookie := securecookie.New(hashKey, blockKey) | ||||||
| 	cookie.MaxAge(maxAge) | 	cookie.MaxAge(maxAge) | ||||||
|  | 	cookie.MaxLength(math.MaxInt) | ||||||
| 	return &Codec{ | 	return &Codec{ | ||||||
| 		SecureCookie: cookie, | 		SecureCookie: cookie, | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer