git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #346 from bdwyertech/patch-1
107b481Jehiah Czebotar
oauthproxy.go+4
@@ -257,6 +257,10 @@ func (p *OAuthProxy) MakeCookie(req *http.Request, value string, expiration time
257
257
258 if value != "" {
258 if value != "" {
259 value = cookie.SignedValue(p.CookieSeed, p.CookieName, value, now)
259 value = cookie.SignedValue(p.CookieSeed, p.CookieName, value, now)
260+ if len(value) > 4096 {
261+ // Cookies cannot be larger than 4kb
262+ log.Printf("WARNING - Cookie Size: %d bytes", len(value))
263+ }
260 }
264 }
261 return &http.Cookie{
265 return &http.Cookie{
262 Name: p.CookieName,
266 Name: p.CookieName,