<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
you probably don't need to change anything in keycloak
model/storage. To add additional values for the user, you just
need to do few changes in the UI. Model storage should be already
flexible enough to support storing generic attributes. See this
for more info:
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/custom-user-attributes.html">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/custom-user-attributes.html</a>
and this for how to map your generic attributes to
accessToken/IDToken to see them in your application:
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/mappers.html">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/mappers.html</a><br>
<br>
ATM it's not possible to store dynamic attributes in to LDAP, but
we're going to add it soon (probably in few months)<br>
<br>
Marek<br>
<br>
On 15.4.2015 18:24, Alik Kurdyukov wrote:<br>
</div>
<blockquote
cite="mid:etPan.552e90b9.b03e0c6.14d@AlikMacBookPro.local"
type="cite">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hello!</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">First of all,
thank you for implementing Keycloak, I made it work with Spring
Security in a very short time.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I have
architectural question: I need to store lots of additional field
values for every user in the system. I see two ways:</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">1. extend
existing Keycloak storage and add fields there</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">2. store
additional info in the LDAP server and retrieve additional
params by separate LDAP queries</div>
<div>
<div class="bloop_container">
<div class="bloop_frame"> </div>
</div>
</div>
<div>What is the best way to store it?</div>
<br>
<div class="bloop_sign" id="bloop_sign_1429113752057568000"><span
style="font-family:helvetica,arial;font-size:13px"></span>-- <br>
Best regards,<br>
<div>Alik Kurdyukov<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>