Forum Discussion
Daniel_W__13795
Jan 04, 2019Nimbostratus
APM: OAUTH2 JWT Token with groups claim
Hello and happy new year 😉
We use APM as OAuth Authorization Server to create JWT token for apps.
One of our customers wants to use the MicroProfile JWT(MP-JWT) for his application, that needs som...
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"}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects