From 6156fdf17515bf6201785b2fb95c3d55430ff556 Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Tue, 17 Jan 2023 13:27:08 -0600 Subject: [PATCH] Expect complex subclaims of additionalClaims to have type interface{} Co-authored-by: Ryan Richard --- test/integration/supervisor_login_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/supervisor_login_test.go b/test/integration/supervisor_login_test.go index ad1e7fca..a0514718 100644 --- a/test/integration/supervisor_login_test.go +++ b/test/integration/supervisor_login_test.go @@ -1715,7 +1715,11 @@ func TestSupervisorLogin_Browser(t *testing.T) { func wantGroupsInAdditionalClaimsIfGroupsExist(additionalClaims map[string]interface{}, wantGroupsAdditionalClaimName string, wantGroups []string) map[string]interface{} { if len(wantGroups) > 0 { - additionalClaims[wantGroupsAdditionalClaimName] = wantGroups + var wantGroupsAnyType []interface{} + for _, group := range wantGroups { + wantGroupsAnyType = append(wantGroupsAnyType, group) + } + additionalClaims[wantGroupsAdditionalClaimName] = wantGroupsAnyType } return additionalClaims }