chore: include merged claims into the database (#15570)

Merging happens before IDP sync. Storing this will make some SQL queries
much simplier.
This commit is contained in:
Steven Masley
2024-11-18 11:58:19 -06:00
committed by GitHub
parent 097b84f27b
commit 4fedc7cf3d
3 changed files with 14 additions and 0 deletions
@@ -64,6 +64,16 @@ func TestUserLinks(t *testing.T) {
"number": float64(2),
},
},
MergedClaims: map[string]interface{}{
"sub": "123",
"groups": []interface{}{
"foo", "bar",
},
"number": float64(2),
"struct": map[string]interface{}{
"number": float64(2),
},
},
}
updated, err := crypt.UpdateUserLink(ctx, database.UpdateUserLinkParams{