[keycloak-user] Custom user attribute documentation correct?

Jason Axley jaxley at expedia.com
Wed Feb 24 00:02:44 EST 2016


Is the documentation here accurate for v1.9.0-Final? http://keycloak.github.io/docs/userguide/keycloak-server/html/custom-user-attributes.html#d4e3678  It says (for the user account profile pages, for example) that attributes must be of the form like “user.attributes.mobile” but if you do this, Freemarker can’t render the template.  I can render it if I use “account.mobile”, however it’s not displaying the data that is definitely there on the user profile (I can see it as an administrator on the Attributes tab).


        <div class="form-group ${messagesPerField.printIfExists('account.mobile','has-error')}">

            <div class="col-sm-2 col-md-2">

                <label for="account.mobile" class="control-label">${msg("mobile")}</label> <span class="required">*</span>

            </div>


            <div class="col-sm-10 col-md-10">

                <input type="text" class="form-control" id="account.mobile" name="account.mobile" value="${(account.mobile!'')?html}"/>

            </div>

        </div>

-Jason

Jason Axley
Sr. Security Engineer, Expedia Worldwide Engineering Team
425-679-4157 (o) | 206-484-2778 (m) | 206-55-AXLEY (gv)
333 108th Ave NE, 9S-282, Bellevue, WA 98004
EWE Security Wiki<https://confluence/display/POS/EWE+Security>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160224/3d19d669/attachment.html 


More information about the keycloak-user mailing list