mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-28 14:08:43 +02:00
internal/sessions: add cookie chunking
This commit is contained in:
parent
51e15daffd
commit
bade7461ca
4 changed files with 73 additions and 9 deletions
|
@ -2,6 +2,7 @@ package sessions
|
|||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -157,7 +158,7 @@ func TestMarshalSession(t *testing.T) {
|
|||
wantErr bool
|
||||
}{
|
||||
{"simple", &SessionState{}, false},
|
||||
{"too big", &SessionState{AccessToken: string(hugeString)}, true},
|
||||
{"too big", &SessionState{AccessToken: fmt.Sprintf("%x", hugeString)}, false},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue