mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
OIDC: allow to extract custom fields from sub-structs
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1945,9 +1945,7 @@ func TestEventParamsCopy(t *testing.T) {
|
||||
assert.Equal(t, "val1", v)
|
||||
}
|
||||
assert.Equal(t, params.IDPCustomFields, paramsCopy.IDPCustomFields)
|
||||
paramsCopy.addIDPCustomFields(&map[string]any{
|
||||
"field2": "val2",
|
||||
})
|
||||
(*paramsCopy.IDPCustomFields)["field1"] = "val2"
|
||||
assert.NotEqual(t, params.IDPCustomFields, paramsCopy.IDPCustomFields)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user