Templates¶
Onegini IdP Extension templates can use attributes which are provided by Onegini IdP. As a reference for customising templates please refer to the default template set (zip) and the default email template set (zip).
Registration form¶
In order to properly block certain fields from edit (and just to still display them for users) it's advised to keep proper th:readonly tags. Fields are associated with attribute values from following list:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
to pass information about required field configuration additional map of objects "fieldConfiguration" is provided. Map associates keys (mentioned above) with FieldConfiguration object that provides "isEditable" function.
example field may look like:
1 2 3 4 5 6 7 | |
Facebook profile attributes¶
Onegini IdP exposes attributes from a Facebook profile to the templates. It depends on the Facebook IdP configuration which attributes are exposed.
Identifiers of the profile attributes:
- name
- short_name
- first_name
- middle_name
- last_name
- address
- gender
- birthday
Below is an example of the HTML code to render the first_name:
1 | |