mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user