From: D B. <ba...@aw...> - 2020-03-20 14:51:28
|
Hi, On 20/03/2020 07:13, Sander Apweiler wrote: > 2. Same as above but change the condition from true to some expresion > with something like "requester=serviceA". I can't remember if we had > used only the server name or entityID in this place. Thanks, that's the sort of thing I was looking for! For testing, I tried creating a rule with a condition based on entityId and another one just adding the entityId as an attribute: createAttribute|attributeName: entityId|expression: entityId|mandatory: false|attributeDisplayName: |attributeDescription: |type: In the logs, I'm getting org.mvel2.PropertyAccessException: [Error: could not access: entityId; in class: java.util.HashMap] [Near : {... entityId ....}] ^ [Line: 1, Column: 1] According to https://www.unity-idm.eu/documentation/unity-3.2.1/manual.html#attributes entityId should be available similar to attr. What am I doing wrong? Cheers, D |