User attribute based on local macro in Openid rp
Summary
I would like to be able to change the returned User Attribute (sub) in an openid rp, based on a local macro. For example, if the user "toto" is member of "application_admin" group, then return "admin" as sub, else return $uid "toto" (like the default behaviour).
Currently i'm able to create a local macro, but when i try to assign this macro to the "user attribute" parameter, i get a null value for the sub.
The documentation indicates that i can put a session field, not a local macro.