Forum Discussion
Rene_C_
Nimbostratus
Bump! Same question on my side, this is actually a mandatory feature.
Any possibility to do json arrays / lists in a claim?
Thanks!
Eric_Chen_12394
Feb 22, 2019Historic F5 Account
I believe this is possible (at least on <= 14.1) if you use an iRule event. Something like:
...
set mygroups [ ACCESS::session data get "session.mygroups" ]
append payload {,"mygroups":} "\[$mygroups\]"
...
This is adapted from the example at: https://devcentral.f5.com/wiki/iRules.ACCESS__oauth.ashx
In my AP I have a variable assign with an expression of:
return {"group1","group2"}