admin管理员组文章数量:1278910
I would like to make sure that all my keycloak clients get "aud"
claim with value set to its respective clientId.
For starter, I created a client scope in my realm, called "foobar"
, which defines mapper "audience-foobar"
. This mapper hardcodes value of "aud"
to value "foobar"
.
Now that I can assign this to any client, and they will have "aud": "foobar"
. However, I don't want this value to be hardcoded - is it possible to dynamically resolve value of clientId of client, to whom the client scope has been assigned.
Eg. I imagine I could write something like "${cliendId}"
in mapper definition and if I assign this scope to client "bazbar-client"
, the "aud"
would be set to "bazbar-client"
.
Is it possible? Does it not exists, or did I not search well enough?
Thank you.
本文标签: Dynamically resolve value of clientId in keycloak mapper definitionStack Overflow
版权声明:本文标题:Dynamically resolve value of clientId in keycloak mapper definition - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741288343a2370403.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论