[keycloak-dev] Custom attributes on registration and account management

Bill Burke bburke at redhat.com
Thu Nov 5 11:11:43 EST 2015



On 11/5/2015 5:46 AM, Marek Posolda wrote:
> I wonder if we should improve handling of custom attributes in
> freemarker templates and their validation. Let's assume that I want to
> add custom attribute "birthday" and I want to add it to all screens
> where user can create/edit account. I can see those issues:
>
> - Admin will need to edit 3 separate freemarker templates (registration,
> account management, update profile page) to have this attribute
> displayed on all those places.
>

we've discussed this before. The problem is formatting in each of the 
UIs. Often ordering of attributes is important. Grouping of attributes 
is a must too.

i.e. Address, State, Country, Postal Code

These 4 attribute must be grouped together, and address must come before 
state, and so on.

You might also have a "Billing Address" group that needs to come after 
Home Address group.

So, we'd have an automatic way for displaying attributes, then the 
developer would think "that looks like shit" and want to format things 
himself.  Stian seems to think that CSS will solve this problem, but I'm 
not convinced.

Also the look and feel could be quite different between registration, 
update profile, account management, and the admin profile.  IMO, it 
would end up being easier to just edit the freemarker pages directly 
than to have to define each attribute and how it is grouped, ordered, 
and displayed on each of the pages within an admin console UI.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list