Can we have multiple subjectmapping in authentication.json file. Error is thrown for below configuration of the authentication.json file.
"subjectMapping" : [
{
"resourceTypeMapping" : {
"usr" : "managed/user"
},
"propertyMapping" : {
"sub" : "_id"
},
"userRoles" : "authzRoles/*",
"additionalUserFields" : [
"adminOfOrg",
"ownerOfOrg"
],
"defaultRoles" : [
"internal/role/openidm-authorized"
]
},
{
"resourceTypeMapping" : {
"usr" : "managed/user"
},
"propertyMapping" : {
"sub" : "userName"
},
"userRoles" : "authzRoles/*",
"additionalUserFields" : [
"adminOfOrg",
"ownerOfOrg"
],
"defaultRoles" : [
"internal/role/openidm-authorized"
]
}
]
Error Reported: rsfilter contains ambiguous subjectmappings