mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-12 04:04:26 +00:00
Smarter approach to the cookies (#103)
* Smarter approach to the cookies - Single maxCookieSize = 1400 constant with clear documentation - Combined cookie storage for ~40-45% size reduction - Backward compatible migration from legacy cookies * Tuneup the code.
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
// TestServeHTTP_ExcludedURLs tests the excluded URLs functionality
|
||||
func TestServeHTTP_ExcludedURLs(t *testing.T) {
|
||||
tests := []struct {
|
||||
excludedURLs map[string]struct{}
|
||||
name string
|
||||
path string
|
||||
excludedURLs map[string]struct{}
|
||||
shouldBypass bool
|
||||
}{
|
||||
{
|
||||
@@ -506,12 +506,12 @@ type MockSessionData struct {
|
||||
idToken string
|
||||
accessToken string
|
||||
refreshToken string
|
||||
authenticated bool
|
||||
isDirty bool
|
||||
redirectCount int
|
||||
csrf string
|
||||
nonce string
|
||||
codeVerifier string
|
||||
redirectCount int
|
||||
authenticated bool
|
||||
isDirty bool
|
||||
}
|
||||
|
||||
func (m *MockSessionData) GetEmail() string { return m.email }
|
||||
|
||||
Reference in New Issue
Block a user