File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
internal/outpost/proxyv2/application Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 77 "testing"
88
99 "github.com/gorilla/sessions"
10+ "github.com/mitchellh/mapstructure"
1011 "github.com/stretchr/testify/assert"
1112 "github.com/stretchr/testify/require"
1213
@@ -94,12 +95,9 @@ func TestClaimsMapSerialization(t *testing.T) {
9495 "raw_token" : "not-a-real-token" ,
9596 }
9697
97- // Convert map to Claims using JSON marshaling (like getClaimsFromSession does)
98- jsonData , err := json .Marshal (claimsMap )
99- require .NoError (t , err )
100-
98+ // Convert map to Claims using mapstructure marshaling (like getClaimsFromSession does)
10199 var claims types.Claims
102- err = json . Unmarshal ( jsonData , & claims )
100+ err := mapstructure . Decode ( claimsMap , & claims )
103101 require .NoError (t , err )
104102
105103 // Verify fields
You can’t perform that action at this time.
0 commit comments