<div dir="ltr">Hello Bill,<div><br></div><div>seems to do what I need - I think it should be documented that changes in client templates (e.g. configured mappers) are reflected in created clients.</div><div><br></div><div>Cheers,</div><div>Thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-05 15:05 GMT+01:00 Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
See ClientTemplates<div><div class="h5"><br>
<br>
<br>
<div>On 2/5/2016 7:59 AM, Thomas Darimont
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Hello group,</div>
<div><br>
</div>
<div>In my user model I have a custom user attribute that I want
to make available to multiple </div>
<div>clients via the id / access token with just one definition.
Is this already possible somehow?</div>
<div><br>
</div>
<div>Currently one can define custom mappers for a single client
via:</div>
<div>(In Admin Console) Realm -> Clients -> example-client
-> Mappers -> create</div>
<div><br>
</div>
<div>There I can specify a new mapper of type "user attribute"
where I can refer to the actual user attribute, give it a
"token claim name" (e.g. "myattribute") and specify whether
this should be included in the ID and / or access token.</div>
<div><br>
</div>
<div>The user attribute in the token can then be accessed from
within the client via:</div>
<div>KeycloakSecurityContext:getIdToken().getOtherClaims().get("myattribute")</div>
<div><br>
</div>
<div>This apporach however requires that I configure this for
every client - for which I already have 10 (trend: upwards)...</div>
<div>It would make thinks a lot easier if it were possible to
specify those mappers realm wide...</div>
<div><br>
</div>
<div>PS: I'm currently using Keycloak 1.9.0.CR1</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Thomas</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
</font></span></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>